ContextOperation
class ContextOperation extends AbstractOperation (View source)
"context" operation working on ContentRepository nodes. Modifies the ContentRepository Context of each node in the current FlowQuery context by the given properties and returns the same nodes by identifier if they can be accessed in the new Context (otherwise they will be skipped).
Example:
q(node).context({'invisibleContentShown': true}).children()
Properties
static protected string | $shortName | {@inheritdoc} | |
static protected int | $priority | {@inheritdoc} | |
protected ContextFactoryInterface | $contextFactory |
Methods
bool
canEvaluate(array $context)
{@inheritdoc}
void
evaluate(FlowQuery $flowQuery, array $arguments)
{@inheritdoc}
Details
bool
canEvaluate(array $context)
{@inheritdoc}
void
evaluate(FlowQuery $flowQuery, array $arguments)
{@inheritdoc}