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()
Supported options:
- workspaceName
- dimensions
- invisibleContentShown
Unsupported legacy options:
- currentDateTime
- targetDimensions
- removedContentShown
- inaccessibleContentShown
Traits
Properties
| static protected string | $shortName | {@inheritdoc} | |
| static protected int | $priority | {@inheritdoc} | |
| protected ContentRepositoryRegistry | $contentRepositoryRegistry | ||
| protected SubgraphCachePool | $subgraphCachePool |
Methods
Create a string hash containing the node-aggregateId, cr-id, workspace-name, dimensionSpacePoint-hash and visibilityConstraints-hash. To be used for ensuring uniqueness or removing nodes.
{@inheritdoc}
{@inheritdoc}
Details
protected string
createNodeHash(Node $node)
Create a string hash containing the node-aggregateId, cr-id, workspace-name, dimensionSpacePoint-hash and visibilityConstraints-hash. To be used for ensuring uniqueness or removing nodes.
bool
canEvaluate(mixed[] $context)
{@inheritdoc}
void
evaluate(FlowQuery $flowQuery, array $arguments)
{@inheritdoc}