Browse Source

use term label for filter summary

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

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

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

Loading…
Cancel
Save