$defaultStrategy
$defaultStrategy :
getTokenParsers() : array<mixed,\Twig_TokenParserInterface>
Returns the token parser instances to add to the existing list.
getNodeVisitors() : array<mixed,\Twig_NodeVisitorInterface>
Returns the node visitor instances to add to the existing list.
getFilters() : array<mixed,\Twig_Filter>
Returns a list of filters to add to the existing list.
setDefaultStrategy(string|false|callable $defaultStrategy)
Sets the default strategy to use when not defined by the user.
The strategy can be a valid PHP callback that takes the template name as an argument and returns the strategy to use.
string|false|callable | $defaultStrategy | An escaping strategy |
getTests() : array<mixed,\Twig_Test>
Returns a list of tests to add to the existing list.
getFunctions() : array<mixed,\Twig_Function>
Returns a list of functions to add to the existing list.
<?php
namespace Twig\Extension;
class_exists('Twig_Extension_Escaper');
if (\false) {
class EscaperExtension extends \Twig_Extension_Escaper
{
}
}