getContextValue('node'); if (!$node) { return FALSE; } // Islandora objects are determined by Islandora Utils. $utils = \Drupal::service('islandora.utils'); if ($utils->isIslandoraType('node',$node->bundle())) { return TRUE; } } /** * {@inheritdoc} */ public function summary() { if (!empty($this->configuration['negate'])) { return $this->t('The node is not an Islandora node.'); } else { return $this->t('The node is an Islandora node.'); } } }