ExpressionFunction::getCompiler()

getCompiler()

ExpressionFunction

class ExpressionFunction Represents a function that can be used in an expression. A function is defined by two PHP callables. The callables are used by the language to compile and/or evaluate the function. The "compiler" function is used at compilation time and must return a PHP representation of the function call (it receives the function arguments as arguments). The "evaluator" function is used for expression evaluation and must return the value of the function call based on the values def

ExpressionExtension::getName()

string getName() Returns the name of the extension. Return Value string The extension name

ExpressionExtension::getFunctions()

getFunctions() {@inheritdoc}

ExpressionExtension::createExpression()

createExpression($expression) Parameters $expression

ExpressionExtension

class ExpressionExtension extends Twig_Extension ExpressionExtension gives a way to create Expressions from a template. Methods getFunctions() {@inheritdoc} createExpression($expression) string getName() Returns the name of the extension. Details getFunctions() {@inheritdoc} createExpression($expression) Parameters $expression string getName() Re

ExpressionErrorException

class ExpressionErrorException extends ParseException ParseException is thrown when a CSS selector syntax is not valid. This component is a port of the Python cssselect library, which is copyright Ian Bicking, see https://github.com/SimonSapin/cssselect.

Expression::validatedBy()

string validatedBy() Returns the name of the class that validates this constraint. By default, this is the fully qualified name of the constraint class suffixed with "Validator". You can override this method to change that behaviour. Return Value string

Expression::renderPattern()

string renderPattern() Renders string representation of pattern. Return Value string

Expression::render()

string render() Renders string representation of expression. Return Value string