public function Iid::titleQuery in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/aggregator/src/Plugin/views/argument/Iid.php \Drupal\aggregator\Plugin\views\argument\Iid::titleQuery()
Override for specific title lookups.
Return value
array Returns all titles, if it's just one title it's an array with one entry.
Overrides NumericArgument::titleQuery
File
- core/
modules/ aggregator/ src/ Plugin/ views/ argument/ Iid.php, line 57 - Contains \Drupal\aggregator\Plugin\views\argument\Iid.
Class
- Iid
- Argument handler to accept an aggregator item id.
Namespace
Drupal\aggregator\Plugin\views\argumentCode
public function titleQuery() {
$titles = array();
$items = $this->entityManager
->getStorage('aggregator_item')
->loadMultiple($this->value);
foreach ($items as $feed) {
$titles[] = $feed
->label();
}
return $titles;
}