public function executeDerivativeReactions($reaction_type, NodeInterface $node, MediaInterface $media) {
    $provider = new MediaContextProvider($media);
    $provided = $provider->getRuntimeContexts([]);
    $this->contextManager->evaluateContexts($provided);

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

    // Fire off index reactions.
    foreach ($this->contextManager->getActiveReactions($reaction_type) as $reaction) {
      $reaction->execute($node);
    }
  }
public function executeDerivativeReactions ( $ reaction_type , NodeInterface $ node , MediaInterface $ media ) { $ provider = new MediaContextProvider ( $ media ) ; $ provided = $ provider -> getRuntimeContexts ( [ ] ) ; $ this -> contextManager -> evaluateContexts ( $ provided ) ; // Fire off index reactions. foreach ( $ this -> contextManager -> getActiveReactions ( $ reaction_type ) as $ reaction ) { $ reaction -> execute ( $ node ) ; } }
Executes derivative reactions for a Media and Node.

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