You are here

protected function WebformOptionsCustomListBuilder::getEntityIds in Webform 6.x

Same name and namespace in other branches
  1. 8.5 modules/webform_options_custom/src/WebformOptionsCustomListBuilder.php \Drupal\webform_options_custom\WebformOptionsCustomListBuilder::getEntityIds()

Loads entity IDs using a pager sorted by the entity label (instead of id).

Return value

array An array of entity IDs.

Overrides WebformEntityListBuilderSortLabelTrait::getEntityIds

See also

\Drupal\Core\Entity\EntityListBuilder::getEntityIds

File

modules/webform_options_custom/src/WebformOptionsCustomListBuilder.php, line 287

Class

WebformOptionsCustomListBuilder
Defines a class to build a listing of webform options custom entities.

Namespace

Drupal\webform_options_custom

Code

protected function getEntityIds() {
  $header = $this
    ->buildHeader();
  $query = $this
    ->getQuery($this->keys, $this->category);
  $query
    ->tableSort($header);
  $query
    ->pager($this->limit);
  return $query
    ->execute();
}