Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 32c72bd

Browse filesBrowse files
committed
[symfony#7939] revert some changes (revert them for 3.2)
1 parent 8901ad2 commit 32c72bd
Copy full SHA for 32c72bd

File tree

Expand file treeCollapse file tree

1 file changed

+2
-6
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-6
lines changed

‎reference/twig_reference.rst

Copy file name to clipboardExpand all lines: reference/twig_reference.rst
+2-6Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -595,18 +595,14 @@ file_excerpt
595595

596596
.. code-block:: twig
597597
598-
{{ file|file_excerpt(line, srcContext = 3) }}
598+
{{ file|file_excerpt(line) }}
599599
600600
``file``
601601
**type**: ``string``
602602
``line``
603603
**type**: ``integer``
604-
``srcContext`` *(optional)*
605-
**type**: ``integer``
606604

607-
Generates an excerpt of a code file around the given ``line`` number. The
608-
``srcContext`` argument defines the total number of lines to display around the
609-
given line number (use ``-1`` to display the whole file).
605+
Generates an excerpt of a code file around the given ``line`` number.
610606

611607
format_file
612608
~~~~~~~~~~~

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.