Documentation

Twig_Tests_EnvironmentTest_ExtensionWithoutDeprecationInitRuntime extends AbstractExtension
in package
implements InitRuntimeInterface

Interfaces, Classes and Traits

InitRuntimeInterface
Enables usage of the deprecated Twig\Extension\AbstractExtension::initRuntime() method.

Table of Contents

getFilters()  : array<string|int, TwigFilter>
Returns a list of filters to add to the existing list.
getFunctions()  : array<string|int, TwigFunction>
Returns a list of functions to add to the existing list.
getNodeVisitors()  : array<string|int, NodeVisitorInterface>
Returns the node visitor instances to add to the existing list.
getOperators()  : array<string|int, array<string|int, mixed>>
Returns a list of operators to add to the existing list.
getTests()  : array<string|int, TwigTest>
Returns a list of tests to add to the existing list.
getTokenParsers()  : array<string|int, TokenParserInterface>
Returns the token parser instances to add to the existing list.
initRuntime()  : mixed
Initializes the runtime environment.

Methods

getOperators()

Returns a list of operators to add to the existing list.

public getOperators() : array<string|int, array<string|int, mixed>>
Return values
array<string|int, array<string|int, mixed>>

First array of unary operators, second array of binary operators

getTests()

Returns a list of tests to add to the existing list.

public getTests() : array<string|int, TwigTest>
Return values
array<string|int, TwigTest>

initRuntime()

Initializes the runtime environment.

public initRuntime(Environment $env) : mixed

This is where you can load some file that contains filter functions for instance.

Parameters
$env : Environment
Return values
mixed

Search results