class NextOperation extends AbstractOperation (View source)

"next" operation working on ContentRepository nodes. It iterates over all context elements and returns the immediately following sibling.

If an optional filter expression is provided, it only returns the node if it matches the given expression.

Properties

static protected string $shortName

{@inheritdoc}

static protected int $priority

{@inheritdoc}

protected ContentRepositoryRegistry $contentRepositoryRegistry

Methods

bool
canEvaluate(array<int,mixed> $context)

{@inheritdoc}

void
evaluate(FlowQuery $flowQuery, array $arguments)

{@inheritdoc}

Node|null
getNextForNode(Node $contextNode)

No description

Details

bool canEvaluate(array<int,mixed> $context)

{@inheritdoc}

Parameters

array<int,mixed> $context

(or array-like object) onto which this operation should be applied

Return Value

bool

true if the operation can be applied onto the $context, false otherwise

void evaluate(FlowQuery $flowQuery, array $arguments)

{@inheritdoc}

Parameters

FlowQuery $flowQuery

the FlowQuery object

array $arguments

the arguments for this operation

Return Value

void

protected Node|null getNextForNode(Node $contextNode)

No description

Parameters

Node $contextNode

The node for which the preceding node should be found

Return Value

Node|null

The following node of $contextNode or NULL