Browse Source

paranoid checking

pull/880/head
Seth Shaw 2 years ago
parent
commit
352631099e
  1. 3
      src/Plugin/views/filter/NodeHasMediaUse.php

3
src/Plugin/views/filter/NodeHasMediaUse.php

@ -71,7 +71,8 @@ class NodeHasMediaUse extends FilterPluginBase {
public function adminSummary() {
$operator = ($this->options['negated']) ? "does not have" : "has";
$term = \Drupal::service('islandora.utils')->getTermForUri($this->options['use_uri']);
return "Node {$operator} a '{$term->label()}' media";
$label = (empty($term)) ? 'BROKEN TERM URI' : $term->label();
return "Node {$operator} a '{$label}' media";
}
/**

Loading…
Cancel
Save