class LegacyNamespaceExpressionNode extends AbstractExpressionNode implements ExpressionNodeInterface (View source)

A node representing an additional namespace declaration inside the template.

Properties

static $detectionExpression

Pattern which detects namespace declarations made inline.

Methods

static mixed
evaluateExpression(RenderingContextInterface $renderingContext, string $expression, array $matches)

Evaluates the expression stored in this node, in the context of $renderingcontext.

Details

static mixed evaluateExpression(RenderingContextInterface $renderingContext, string $expression, array $matches)

Evaluates the expression stored in this node, in the context of $renderingcontext.

Parameters

RenderingContextInterface $renderingContext
string $expression
array $matches

Return Value

mixed