TwigFunction

Represents a template function.

final
author

Fabien Potencier fabien@symfony.com

package

Default

Methods

__construct

__construct( $name, $callable,array $options = array())

Arguments

$name

$callable

$options

array

getAlternative

getAlternative()

getArguments

getArguments()

getCallable

getCallable()

getDeprecatedVersion

getDeprecatedVersion()

getName

getName()

getNodeClass

getNodeClass()

getSafe

getSafe(\Twig\Node\Node $functionArgs)

Arguments

$functionArgs

\Twig\Node\Node

isDeprecated

isDeprecated()

isVariadic

isVariadic()

needsContext

needsContext()

needsEnvironment

needsEnvironment()

setArguments

setArguments( $arguments)

Arguments

$arguments

Properties

name

name :

Type(s)

callable

callable :

Type(s)

options

options :

Type(s)

arguments

arguments :

Type(s)