Twig Components / Methods / file_link
Note: You are currently reading the documentation for Bolt 5.0. Looking for the documentation for Bolt 5.2 instead?
file_link(line)
is a Twig filter to generate a link to the provided file and line number using a preconfigured scheme.
{{ file|file_link(line) }}
file
type: string
line
type: integer
Source: Twig
Edit this page on GitHub
Couldn't find what you were looking for? We are happy to help you in the forum, on Slack or on Github.
Couldn't find what you were looking for? We are happy to help you in the forum, on Slack or on Github.