php bin/console debug:twig
Show a list of twig functions, filters, globals and tests
Usage
debug:twig [--filter FILTER] [--format FORMAT] [--] [<name>]
Arguments
name The template name
Options
--filter Show details for all entries matching this filter
--format The output format (text or json)
Help
The debug:twig command outputs a list of twig functions,
filters, globals and tests.
php bin/console debug:twig
The command lists all functions, filters, etc.
php bin/console debug:twig @Twig/Exception/error.html.twig
The command lists all paths that match the given template name.
php bin/console debug:twig --filter=date
The command lists everything that contains the word date.
php bin/console debug:twig --format=json
The command lists everything in a machine readable json format.