You are here

protected function ConnectionRoleListBuilder::getEntityIds in RedHen CRM 8

Loads entity IDs using a pager sorted by the entity id.

Return value

array An array of entity IDs.

Overrides EntityListBuilder::getEntityIds

File

modules/redhen_connection/src/ConnectionRoleListBuilder.php, line 16

Class

ConnectionRoleListBuilder
Provides a listing of Connection Role entities.

Namespace

Drupal\redhen_connection

Code

protected function getEntityIds() {
  $query = $this
    ->getStorage()
    ->getQuery()
    ->sort($this->entityType
    ->getKey('id'));
  if ($connection_type = \Drupal::routeMatch()
    ->getParameter('redhen_connection_type')) {
    $query
      ->condition('connection_type', $connection_type
      ->id(), '=');
  }
  if ($this->limit) {
    $query
      ->pager($this->limit);
  }
  return $query
    ->execute();
}