function Fid::titleQuery

Same name in this branch
  1. 9 core/modules/file/src/Plugin/views/argument/Fid.php \Drupal\file\Plugin\views\argument\Fid::titleQuery()

File

core/modules/aggregator/src/Plugin/views/argument/Fid.php, line 52

Class

Fid
Argument handler to accept an aggregator feed id.

Namespace

Drupal\aggregator\Plugin\views\argument

Code

public function titleQuery() {
  $titles = [];
  $feeds = $this->entityTypeManager
    ->getStorage('aggregator_feed')
    ->loadMultiple($this->value);
  foreach ($feeds as $feed) {
    $titles[] = $feed->label();
  }
  return $titles;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.