PrevUntilOperation
class PrevUntilOperation extends AbstractOperation (View source)
"prevUntil" operation working on ContentRepository nodes. It iterates over all context elements and returns each preceding sibling until the matching sibling is found.
If an optional filter expression is provided as a second argument, it only returns the nodes matching the given expression.
Properties
static protected string | $shortName | {@inheritdoc} | |
static protected int | $priority | {@inheritdoc} |
Methods
bool
canEvaluate(array $context)
{@inheritdoc}
void
evaluate(FlowQuery $flowQuery, array $arguments)
{@inheritdoc}
array|null
Details
bool
canEvaluate(array $context)
{@inheritdoc}
void
evaluate(FlowQuery $flowQuery, array $arguments)
{@inheritdoc}
protected array|null
getPrevForNode(TraversableNodeInterface $contextNode)
No description
protected TraversableNodeInterface[]
getNodesUntil(array $prevNodes, TraversableNodeInterface $until)
No description