Classes, interfaces and traits

AbstractExpression

Abstract class for all nodes that represents an expression.

« More »

ArrayExpression

Abstract class for all nodes that represents an expression.

« More »

ArrowFunctionExpression

Represents an arrow function.

« More »

AssignNameExpression

Abstract class for all nodes that represents an expression.

« More »

BlockReferenceExpression

Represents a block call node.

« More »

CallExpression

Abstract class for all nodes that represents an expression.

« More »

ConditionalExpression

Abstract class for all nodes that represents an expression.

« More »

ConstantExpression

Abstract class for all nodes that represents an expression.

« More »

FilterExpression

Abstract class for all nodes that represents an expression.

« More »

FunctionExpression

Abstract class for all nodes that represents an expression.

« More »

InlinePrint

Abstract class for all nodes that represents an expression.

« More »

MethodCallExpression

Abstract class for all nodes that represents an expression.

« More »

NameExpression

Abstract class for all nodes that represents an expression.

« More »

NullCoalesceExpression

Abstract class for all nodes that represents an expression.

« More »

ParentExpression

Represents a parent node.

« More »

TempNameExpression

Abstract class for all nodes that represents an expression.

« More »

Classes, interfaces and traits

ConstantTest

Checks if a variable is the exact same value as a constant.

{% if post.status is constant('Post::PUBLISHED') %} the status attribute is exactly the same as Post::PUBLISHED {% endif %}

« More »

DivisiblebyTest

Checks if a variable is divisible by a number.

{% if loop.index is divisible by(3) %}

« More »

EvenTest

Checks if a number is even.

{{ var is even }}

« More »

NullTest

Checks that a variable is null.

{{ var is none }}

« More »

OddTest

Checks if a number is odd.

{{ var is odd }}

« More »

SameasTest

Checks if a variable is the same as another one (=== in PHP).

« More »

Classes, interfaces and traits

AbstractUnary

Abstract class for all nodes that represents an expression.

« More »

NegUnary

Abstract class for all nodes that represents an expression.

« More »

NotUnary

Abstract class for all nodes that represents an expression.

« More »

PosUnary

Abstract class for all nodes that represents an expression.

« More »

Classes, interfaces and traits

AbstractBinary

Abstract class for all nodes that represents an expression.

« More »

AddBinary

Abstract class for all nodes that represents an expression.

« More »

AndBinary

Abstract class for all nodes that represents an expression.

« More »

BitwiseAndBinary

Abstract class for all nodes that represents an expression.

« More »

BitwiseOrBinary

Abstract class for all nodes that represents an expression.

« More »

BitwiseXorBinary

Abstract class for all nodes that represents an expression.

« More »

ConcatBinary

Abstract class for all nodes that represents an expression.

« More »

DivBinary

Abstract class for all nodes that represents an expression.

« More »

EndsWithBinary

Abstract class for all nodes that represents an expression.

« More »

EqualBinary

Abstract class for all nodes that represents an expression.

« More »

FloorDivBinary

Abstract class for all nodes that represents an expression.

« More »

GreaterBinary

Abstract class for all nodes that represents an expression.

« More »

GreaterEqualBinary

Abstract class for all nodes that represents an expression.

« More »

InBinary

Abstract class for all nodes that represents an expression.

« More »

LessBinary

Abstract class for all nodes that represents an expression.

« More »

LessEqualBinary

Abstract class for all nodes that represents an expression.

« More »

MatchesBinary

Abstract class for all nodes that represents an expression.

« More »

ModBinary

Abstract class for all nodes that represents an expression.

« More »

MulBinary

Abstract class for all nodes that represents an expression.

« More »

NotEqualBinary

Abstract class for all nodes that represents an expression.

« More »

NotInBinary

Abstract class for all nodes that represents an expression.

« More »

OrBinary

Abstract class for all nodes that represents an expression.

« More »

PowerBinary

Abstract class for all nodes that represents an expression.

« More »

RangeBinary

Abstract class for all nodes that represents an expression.

« More »

StartsWithBinary

Abstract class for all nodes that represents an expression.

« More »

SubBinary

Abstract class for all nodes that represents an expression.

« More »

Classes, interfaces and traits

DefaultFilter

Returns the value or the default value when it is undefined or empty.

{{ var.foo|default('foo item on var is not defined') }}

« More »