class HasOperation extends AbstractOperation (View source)

"has" operation working on Node. Reduce the set of matched elements to those that have a child node that matches the selector or given subject.

Accepts a selector, an array, an object, a traversable object & a FlowQuery object as argument.

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}

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
array $arguments

Return Value

void

Exceptions

FizzleException
Exception