protected function MetatagDefaultsListBuilder::getEntityIds in Metatag 8
Loads entity IDs using a pager sorted by the entity id.
Return value
array An array of entity IDs.
Overrides EntityListBuilder::getEntityIds
File
- src/
MetatagDefaultsListBuilder.php, line 19
Class
- MetatagDefaultsListBuilder
- Provides a listing of Metatag defaults entities.
Namespace
Drupal\metatagCode
protected function getEntityIds() {
$query = $this
->getStorage()
->getQuery()
->condition('id', 'global', '<>');
// Only add the pager if a limit is specified.
if ($this->limit) {
$query
->pager($this->limit);
}
$entity_ids = $query
->execute();
// Load global entity always.
return $entity_ids + $this
->getParentIds($entity_ids);
}