Twig_Function

Implements\Twig_FunctionInterface, \Twig_FunctionCallableInterface

Represents a template function.

Use \Twig\TwigFunction instead.

author

Fabien Potencier fabien@symfony.com

deprecated

since 1.12 (to be removed in 2.0)

package

Default

Methods

__construct

__construct(array $options = array())

Arguments

$options

array

getArguments

getArguments()

getCallable

getCallable()

getSafe

getSafe(\Twig\Node\Node $functionArgs)

Arguments

$functionArgs

\Twig\Node\Node

needsContext

needsContext()

needsEnvironment

needsEnvironment()

setArguments

setArguments( $arguments)

Arguments

$arguments

Properties

options

options :

Type(s)

arguments

arguments :

Type(s)