TYPO3CMS  8
 All Classes Namespaces Files Functions Variables Pages
LegacyNamespaceExpressionNode Class Reference
Inheritance diagram for LegacyNamespaceExpressionNode:

Static Public Member Functions

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

Static Public Attributes

static $detectionExpression = '/{namespace\\s*([a-z0-9]+)\\s*=\\s*([a-z0-9_\\\\]+)\\s*}/i'
 

Detailed Description

Member Function Documentation

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

Definition at line 38 of file LegacyNamespaceExpressionNode.php.

Referenced by LegacyNamespaceExpressionNodeTest\evaluateExpressionExtractsNamespaces().

Member Data Documentation

$detectionExpression = '/{namespace\\s*([a-z0-9]+)\\s*=\\s*([a-z0-9_\\\\]+)\\s*}/i'
static

Pattern which detects ternary conditions written in shorthand syntax, e.g. {checkvar ? thenvar : elsevar}.

Definition at line 30 of file LegacyNamespaceExpressionNode.php.