Home
last modified time | relevance | path

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

/plugin/findologicxmlexport/vendor/twig/twig/test/Twig/Tests/
H A DIntegrationTest.php23 use Twig\TwigFunction; alias
171 new TwigFunction('§', [$this, '§Function']),
172 new TwigFunction('safe_br', [$this, 'br'], ['is_safe' => ['html']]),
173 new TwigFunction('unsafe_br', [$this, 'br']),
174 new TwigFunction('static_call_string', 'TwigTestExtension::staticCall'),
175 new TwigFunction('static_call_array', ['TwigTestExtension', 'staticCall']),
176 new TwigFunction('*_path', [$this, 'dynamic_path']),
177 new TwigFunction('*_foo_*_bar', [$this, 'dynamic_foo']),
H A DEnvironmentTest.php25 use Twig\TwigFunction; alias
589 new TwigFunction('foo_function', 'foo_function'),
682 … new TwigFunction('from_runtime_array', ['Twig_Tests_EnvironmentTest_Runtime', 'fromRuntime']),
683 … new TwigFunction('from_runtime_string', 'Twig_Tests_EnvironmentTest_Runtime::fromRuntime'),
/plugin/findologicxmlexport/vendor/twig/twig/test/Twig/Tests/Node/Expression/
H A DFunctionTest.php17 use Twig\TwigFunction; alias
34 $environment->addFunction(new TwigFunction('foo', 'foo', []));
35 $environment->addFunction(new TwigFunction('bar', 'bar', ['needs_environment' => true]));
36 $environment->addFunction(new TwigFunction('foofoo', 'foofoo', ['needs_context' => true]));
37 …$environment->addFunction(new TwigFunction('foobar', 'foobar', ['needs_environment' => true, 'need…
38 …$environment->addFunction(new TwigFunction('barbar', 'twig_tests_function_barbar', ['is_variadic' …
/plugin/findologicxmlexport/vendor/twig/twig/src/Node/Expression/
H A DFunctionExpression.php15 use Twig\TwigFunction; alias
35 … if ($function instanceof \Twig_FunctionCallableInterface || $function instanceof TwigFunction) {
43 if ($function instanceof TwigFunction) {
/plugin/findologicxmlexport/vendor/twig/twig/lib/Twig/
H A DSimpleFunction.php3 use Twig\TwigFunction; alias
8 class Twig_SimpleFunction extends TwigFunction
/plugin/findologicxmlexport/vendor/twig/twig/src/Extension/
H A DStringLoaderExtension.php13 use Twig\TwigFunction; alias
23 …new TwigFunction('template_from_string', 'twig_template_from_string', ['needs_environment' => true…
H A DExtensionInterface.php18 use Twig\TwigFunction; alias
68 * @return TwigFunction[]
H A DDebugExtension.php13 use Twig\TwigFunction; alias
33 …new TwigFunction('dump', 'twig_var_dump', ['is_safe' => $isDumpOutputHtmlSafe ? ['html'] : [], 'ne…
H A DCoreExtension.php32 use Twig\TwigFunction; alias
223 new TwigFunction('max', 'max'),
224 new TwigFunction('min', 'min'),
225 new TwigFunction('range', 'range'),
226 new TwigFunction('constant', 'twig_constant'),
227 new TwigFunction('cycle', 'twig_cycle'),
228 new TwigFunction('random', 'twig_random', ['needs_environment' => true]),
229 new TwigFunction('date', 'twig_date_converter', ['needs_environment' => true]),
230 …new TwigFunction('include', 'twig_include', ['needs_environment' => true, 'needs_context' => true,…
231 … new TwigFunction('source', 'twig_source', ['needs_environment' => true, 'is_safe' => ['all']]),
/plugin/findologicxmlexport/vendor/twig/twig/test/Twig/Tests/Util/
H A DDeprecationCollectorTest.php13 use Twig\TwigFunction; alias
24 $twig->addFunction(new TwigFunction('deprec', [$this, 'deprec'], ['deprecated' => true]));
/plugin/findologicxmlexport/vendor/twig/twig/test/Twig/Tests/Node/
H A DDeprecatedTest.php19 use Twig\TwigFunction; alias
62 $environment->addFunction(new TwigFunction('foo', 'foo', []));
/plugin/findologicxmlexport/vendor/twig/twig/test/Twig/Tests/Node/Expression/PHP53/
H A DFunctionInclude.php4 $env->addFunction(new \Twig\TwigFunction('anonymous', function () {}));
/plugin/findologicxmlexport/vendor/twig/twig/src/
H A DTwigFunction.php23 class TwigFunction class
H A DEnvironment.php1291 …* @param string|TwigFunction $name The function name or a \Twig_SimpleFunctio…
1296 …if (!$name instanceof TwigFunction && !($function instanceof TwigFunction || $function instanceof …
1300 if ($name instanceof TwigFunction) {
1568 if ($function instanceof TwigFunction) {
H A DExpressionParser.php695 if ($function instanceof TwigFunction && $function->isDeprecated()) {
709 if ($function instanceof TwigFunction) {
/plugin/findologicxmlexport/vendor/twig/twig/src/Test/
H A DIntegrationTestCase.php23 use Twig\TwigFunction; alias
64 * @return TwigFunction[]
/plugin/findologicxmlexport/vendor/twig/twig/doc/
H A Ddeprecated.rst81 * As of Twig 1.x, use ``\Twig\TwigFunction`` to add a function. The following
91 * As of Twig 2.x, the ``\Twig\TwigFunction`` class is deprecated and will be
93 ``\Twig\TwigFunction`` is just an alias for ``Twig_Function``.
H A Dadvanced.rst298 an instance of ``\Twig\TwigFunction``::
301 $function = new \Twig\TwigFunction('function_name', function () {
634 * @return \Twig\TwigFunction[]
722 new \Twig\TwigFunction('lipsum', 'generate_lipsum'),
839 new \Twig\TwigFunction('rot13', [$this, 'rot13']),
903 new \Twig\TwigFunction('rot13', ['Project_Twig_RuntimeExtension', 'rot13']),
905 new \Twig\TwigFunction('rot13', 'Project_Twig_RuntimeExtension::rot13'),
H A Drecipes.rst283 return new \Twig\TwigFunction($name, $name);
H A Dadvanced_legacy.rst576 * @return \Twig\TwigFunction[]