public function executeNodeReactions($reaction_type, NodeInterface $node) {
    $provider = new NodeContextProvider($node);
    $provided = $provider->getRuntimeContexts([]);
    $this->contextManager->evaluateContexts($provided);

    // Fire off index reactions.
    foreach ($this->contextManager->getActiveReactions($reaction_type) as $reaction) {
      $reaction->execute($node);
    }
  }
public function executeNodeReactions($reaction_type, NodeInterface $node) {
    $provider = new NodeContextProvider($node);
    $provided = $provider->getRuntimeContexts([]);
    $this->contextManager->evaluateContexts($provided);

    // Fire off index reactions.
    foreach ($this->contextManager->getActiveReactions($reaction_type) as $reaction) {
      $reaction->execute($node);
    }
  }
public function executeNodeReactions ( $ reaction_type , NodeInterface $ node ) { $ provider = new NodeContextProvider ( $ node ) ; $ provided = $ provider -> getRuntimeContexts ( [ ] ) ; $ this -> contextManager -> evaluateContexts ( $ provided ) ; // Fire off index reactions. foreach ( $ this -> contextManager -> getActiveReactions ( $ reaction_type ) as $ reaction ) { $ reaction -> execute ( $ node ) ; } }
Executes context reactions for a Node.

@param string $reaction_type
Reaction type.
@param \Drupal\node\NodeInterface $node
Node to evaluate contexts and pass to reaction.
Executes context reactions for a Node .