original_string: public function getMediaWithTerm(NodeInterface $node, TermInterface $term) {
      $mids = $this->getMediaReferencingNodeAndTerm($node, $term);
      if (empty($mids)) {
        return NULL;
      }
      return $this->entityTypeManager->getStorage('media')->load(reset($mids));
    }
code: public function getMediaWithTerm(NodeInterface $node, TermInterface $term) {
      $mids = $this->getMediaReferencingNodeAndTerm($node, $term);
      if (empty($mids)) {
        return NULL;
      }
      return $this->entityTypeManager->getStorage('media')->load(reset($mids));
    }
code_tokens: public function getMediaWithTerm ( NodeInterface $ node , TermInterface $ term ) { $ mids = $ this -> getMediaReferencingNodeAndTerm ( $ node , $ term ) ; if ( empty ( $ mids ) ) { return NULL ; } return $ this -> entityTypeManager -> getStorage ( 'media' ) -> load ( reset ( $ mids ) ) ; }
docstring: Gets media that belong to a node with the specified term.
  
  @param \Drupal\node\NodeInterface $node
  The parent node.
  @param \Drupal\taxonomy\TermInterface $term
  Taxonomy term.
  
  @return \Drupal\media\MediaInterface
  The child Media.
  
  @throws \Drupal\Component\Plugin\Exception\PluginNotFoundException
  Calling getStorage() throws if the entity type doesn't exist.
  @throws \Drupal\Component\Plugin\Exception\InvalidPluginDefinitionException
  Calling getStorage() throws if the storage handler couldn't be loaded.
docstring_tokens: Gets media that belong to a node with the specified term .