You are here

protected function WebformOptionsListBuilder::getEntityIds in Webform 6.x

Same name and namespace in other branches
  1. 8.5 src/WebformOptionsListBuilder.php \Drupal\webform\WebformOptionsListBuilder::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

src/WebformOptionsListBuilder.php, line 272

Class

WebformOptionsListBuilder
Defines a class to build a listing of webform options entities.

Namespace

Drupal\webform

Code

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