Twig_SimpleFunction

Extends\Twig\TwigFunction

Represents a template function.

package

Default

Methods

__construct

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

Arguments

$name

$callable

$options

array

getAlternative

getAlternative()
inherited

getArguments

getArguments()
inherited

getCallable

getCallable()
inherited

getDeprecatedVersion

getDeprecatedVersion()
inherited

getName

getName()
inherited

getNodeClass

getNodeClass()
inherited

getSafe

getSafe(\Twig\Node\Node $functionArgs)
inherited

Arguments

$functionArgs

\Twig\Node\Node

isDeprecated

isDeprecated()
inherited

isVariadic

isVariadic()
inherited

needsContext

needsContext()
inherited

needsEnvironment

needsEnvironment()
inherited

setArguments

setArguments( $arguments)
inherited

Arguments

$arguments

Properties

name

name :
inherited

Type(s)

callable

callable :
inherited

Type(s)

options

options :
inherited

Type(s)

arguments

arguments :
inherited

Type(s)