Neos\Eel\FlowQuery\OperationResolverInterface::resolveOperation PHP Method

resolveOperation() public method

Resolve an operation, taking runtime constraints into account.
public resolveOperation ( string $operationName, array | mixed $context ) : Neos\Eel\FlowQuery\OperationInterface
$operationName string
$context array | mixed
return Neos\Eel\FlowQuery\OperationInterface the resolved operation
    public function resolveOperation($operationName, $context);

Usage Example

 /**
  * Evaluate operations
  *
  * @return mixed the last operation result if the operation is a final operation, NULL otherwise
  */
 protected function evaluateOperations()
 {
     while ($op = array_shift($this->operations)) {
         $operation = $this->operationResolver->resolveOperation($op['name'], $this->context);
         $lastOperationResult = $operation->evaluate($this, $op['arguments']);
     }
     return $lastOperationResult;
 }
All Usage Examples Of Neos\Eel\FlowQuery\OperationResolverInterface::resolveOperation