Documentation

AsseticNode extends Twig_Node
in package

Represents a node in the AST.

Table of Contents

$attributes  : mixed
$lineno  : mixed
$nodes  : mixed
$tag  : mixed
$name  : mixed
$sourceContext  : mixed
__construct()  : mixed
Constructor.
__toString()  : mixed
compile()  : mixed
count()  : mixed
getAttribute()  : mixed
getIterator()  : mixed
getNode()  : Node
getNodeTag()  : mixed
getSourceContext()  : mixed
getTemplateLine()  : mixed
getTemplateName()  : mixed
hasAttribute()  : bool
hasNode()  : bool
removeAttribute()  : mixed
removeNode()  : mixed
setAttribute()  : mixed
setNode()  : mixed
setSourceContext()  : mixed
setTemplateName()  : mixed
compileAsset()  : mixed
compileAssetUrl()  : mixed
compileDebug()  : mixed

Properties

$attributes

protected mixed $attributes

$lineno

protected mixed $lineno

$nodes

protected mixed $nodes

$tag

protected mixed $tag

$name

private mixed $name

$sourceContext

private mixed $sourceContext

Methods

__construct()

Constructor.

public __construct(AssetInterface $asset, Twig_Node $body, array<string|int, mixed> $inputs, array<string|int, mixed> $filters, string $name[, array<string|int, mixed> $attributes = array() ], int $lineno[, string $tag = null ]) : mixed

Available attributes:

  • debug: The debug mode
  • combine: Whether to combine assets
  • var_name: The name of the variable to expose to the body node
Parameters
$asset : AssetInterface

The asset

$body : Twig_Node

The body node

$inputs : array<string|int, mixed>

An array of input strings

$filters : array<string|int, mixed>

An array of filter strings

$name : string

The name of the asset

$attributes : array<string|int, mixed> = array()

An array of attributes

$lineno : int

The line number

$tag : string = null

The tag name

Return values
mixed

__toString()

public __toString() : mixed
Return values
mixed

count()

public count() : mixed
Return values
mixed

getAttribute()

public getAttribute(mixed $name) : mixed
Parameters
$name : mixed
Return values
mixed

getIterator()

public getIterator() : mixed
Return values
mixed

getNode()

public getNode(mixed $name) : Node
Parameters
$name : mixed
Return values
Node

getNodeTag()

public getNodeTag() : mixed
Return values
mixed

getSourceContext()

public getSourceContext() : mixed
Return values
mixed

getTemplateLine()

public getTemplateLine() : mixed
Return values
mixed

getTemplateName()

public getTemplateName() : mixed
Return values
mixed

hasAttribute()

public hasAttribute(mixed $name) : bool
Parameters
$name : mixed
Return values
bool

hasNode()

public hasNode(mixed $name) : bool
Parameters
$name : mixed
Return values
bool

removeAttribute()

public removeAttribute(mixed $name) : mixed
Parameters
$name : mixed
Return values
mixed

removeNode()

public removeNode(mixed $name) : mixed
Parameters
$name : mixed
Return values
mixed

setAttribute()

public setAttribute(string $name, mixed $value) : mixed
Parameters
$name : string
$value : mixed
Return values
mixed

setNode()

public setNode(mixed $name, self $node) : mixed
Parameters
$name : mixed
$node : self
Return values
mixed

setSourceContext()

public setSourceContext(Source $source) : mixed
Parameters
$source : Source
Return values
mixed

setTemplateName()

public setTemplateName(mixed $name) : mixed
Parameters
$name : mixed
Tags
deprecated

since 2.8 (to be removed in 3.0)

Return values
mixed

Search results