protected function GroupRoleListBuilder::getEntityIds in Group 8
Same name and namespace in other branches
- 2.0.x src/Entity/Controller/GroupRoleListBuilder.php \Drupal\group\Entity\Controller\GroupRoleListBuilder::getEntityIds()
Loads entity IDs using a pager sorted by the entity id.
Return value
array An array of entity IDs.
Overrides EntityListBuilder::getEntityIds
File
- src/
Entity/ Controller/ GroupRoleListBuilder.php, line 61
Class
- GroupRoleListBuilder
- Defines a class to build a listing of group role entities.
Namespace
Drupal\group\Entity\ControllerCode
protected function getEntityIds() {
$query = $this
->getStorage()
->getQuery()
->condition('internal', 0, '=')
->condition('group_type', $this->groupType
->id(), '=')
->sort($this->entityType
->getKey('weight'));
// Only add the pager if a limit is specified.
if ($this->limit) {
$query
->pager($this->limit);
}
return array_values($query
->execute());
}