original_string: public function executeMediaReactions($reaction_type, 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($media);
      }
    }
code: public function executeMediaReactions($reaction_type, 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($media);
      }
    }
code_tokens: public function executeMediaReactions ( $ reaction_type , 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 ( $ media ) ; } }
docstring: Executes context reactions for a Media.
  
  @param string $reaction_type
  Reaction type.
  @param \Drupal\media\MediaInterface $media
  Media to evaluate contexts and pass to reaction.
docstring_tokens: Executes context reactions for a Media .