function Iid::titleQuery
Same name in other branches
- 8.9.x core/modules/aggregator/src/Plugin/views/argument/Iid.php \Drupal\aggregator\Plugin\views\argument\Iid::titleQuery()
Overrides NumericArgument::titleQuery
File
-
core/
modules/ aggregator/ src/ Plugin/ views/ argument/ Iid.php, line 57
Class
- Iid
- Argument handler to accept an aggregator item id.
Namespace
Drupal\aggregator\Plugin\views\argumentCode
public function titleQuery() {
$titles = [];
$items = $this->entityTypeManager
->getStorage('aggregator_item')
->loadMultiple($this->value);
foreach ($items 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.