class ParentsUntilOperation extends AbstractOperation (View source)

"parentsUntil" operation working on ContentRepository nodes. It iterates over all context elements and returns the parent nodes until the matching parent 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($context)

{@inheritdoc}

void
evaluate(FlowQuery $flowQuery, array $arguments)

{@inheritdoc}

array
getParents(TraversableNodeInterface $contextNode)

No description

array
getNodesUntil(array $parentNodes, TraversableNodeInterface $until)

No description

Details

bool canEvaluate($context)

{@inheritdoc}

Parameters

$context

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

Exceptions

Exception

protected array getParents(TraversableNodeInterface $contextNode)

No description

Compare to node type Neos.Neos:Site instead of path once it is available

Parameters

TraversableNodeInterface $contextNode

Return Value

array

protected array getNodesUntil(array $parentNodes, TraversableNodeInterface $until)

No description

Parameters

array $parentNodes

the parent nodes

TraversableNodeInterface $until

Return Value

array