configuration['uri']) && !$this->isNegated()) { return TRUE; } $media = $this->getContextValue('media'); if (!$media) { return FALSE; } $node = $this->utils->getParentNode($media); if (!$node) { return FALSE; } return $this->evaluateEntity($node); } /** * {@inheritdoc} */ public function summary() { if (!empty($this->configuration['negate'])) { return $this->t('The parent node is not associated with taxonomy term with uri @uri.', ['@uri' => $this->configuration['uri']]); } else { return $this->t('The parent node is associated with taxonomy term with uri @uri.', ['@uri' => $this->configuration['uri']]); } } }