Home
last modified time | relevance | path

Searched refs:TwigFunction (Results 1 – 14 of 14) sorted by relevance

/template/twigstarter/vendor/twig/twig/lib/Twig/
H A DSimpleFunction.php12 use Twig\TwigFunction; alias
17 class_exists(TwigFunction::class);
23 final class Twig_SimpleFunction extends TwigFunction
H A DFunction.php3 use Twig\TwigFunction; alias
11 class Twig_Function extends TwigFunction
/template/twigstarter/vendor/twig/twig/src/Extension/
H A DExtensionInterface.php17 use Twig\TwigFunction; alias
58 * @return TwigFunction[]
H A DStringLoaderExtension.php13 use Twig\TwigFunction; alias
20 …new TwigFunction('template_from_string', 'twig_template_from_string', ['needs_environment' => true…
H A DDebugExtension.php13 use Twig\TwigFunction; alias
30 …new TwigFunction('dump', 'twig_var_dump', ['is_safe' => $isDumpOutputHtmlSafe ? ['html'] : [], 'ne…
H A DStagingExtension.php17 use Twig\TwigFunction; alias
35 public function addFunction(TwigFunction $function)
H A DCoreExtension.php72 use Twig\TwigFunction; alias
264 new TwigFunction('max', 'max'),
265 new TwigFunction('min', 'min'),
266 new TwigFunction('range', 'range'),
267 new TwigFunction('constant', 'twig_constant'),
268 new TwigFunction('cycle', 'twig_cycle'),
269 new TwigFunction('random', 'twig_random', ['needs_environment' => true]),
270 new TwigFunction('date', 'twig_date_converter', ['needs_environment' => true]),
271 …new TwigFunction('include', 'twig_include', ['needs_environment' => true, 'needs_context' => true,…
272 … new TwigFunction('source', 'twig_source', ['needs_environment' => true, 'is_safe' => ['all']]),
/template/twigstarter/vendor/twig/twig/src/
H A DExtensionSet.php157 public function addFunction(TwigFunction $function)
167 * @return TwigFunction[]
179 * @return TwigFunction|false
H A DTwigFunction.php26 class TwigFunction class
H A DEnvironment.php852 public function addFunction(TwigFunction $function)
865 * @return TwigFunction|false
884 * @return TwigFunction[]
/template/twigstarter/vendor/twig/twig/src/Test/
H A DIntegrationTestCase.php21 use Twig\TwigFunction; alias
62 * @return TwigFunction[]
/template/twigstarter/vendor/twig/twig/doc/
H A Ddeprecated.rst54 * ``Twig\TwigFunction``
108 3.0. Use ``Twig\TwigFilter``, ``Twig\TwigFunction``, and ``Twig\TwigTest``
H A Dadvanced.rst284 an instance of ``\Twig\TwigFunction``::
287 $function = new \Twig\TwigFunction('function_name', function () {
616 * @return \Twig\TwigFunction[]
680 new \Twig\TwigFunction('lipsum', 'generate_lipsum'),
797 new \Twig\TwigFunction('rot13', [$this, 'rot13']),
861 new \Twig\TwigFunction('rot13', ['Project_Twig_RuntimeExtension', 'rot13']),
863 new \Twig\TwigFunction('rot13', 'Project_Twig_RuntimeExtension::rot13'),
H A Drecipes.rst280 return new \Twig\TwigFunction($name, $name);