Twig_FunctionInterface

Extends

Represents a template function.

Use \Twig\TwigFunction instead.

author

Arnaud Le Blanc arnaud.lb@gmail.com

deprecated

since 1.12 (to be removed in 2.0)

package

Default

Methods

Compiles a function.

compile(): string

Response

string

The PHP code for the function

getArguments

getArguments()

getSafe

getSafe(\Twig\Node\Node $filterArgs)

Arguments

$filterArgs

\Twig\Node\Node

needsContext

needsContext()

needsEnvironment

needsEnvironment()

setArguments

setArguments( $arguments)

Arguments

$arguments