function BlockContentListBuilder::getEntityIds

Same name in other branches
  1. 9 core/modules/block_content/src/BlockContentListBuilder.php \Drupal\block_content\BlockContentListBuilder::getEntityIds()
  2. 10 core/modules/block_content/src/BlockContentListBuilder.php \Drupal\block_content\BlockContentListBuilder::getEntityIds()
  3. 11.x core/modules/block_content/src/BlockContentListBuilder.php \Drupal\block_content\BlockContentListBuilder::getEntityIds()

Overrides EntityListBuilder::getEntityIds

File

core/modules/block_content/src/BlockContentListBuilder.php, line 34

Class

BlockContentListBuilder
Defines a class to build a listing of custom block entities.

Namespace

Drupal\block_content

Code

protected function getEntityIds() {
    $query = $this->getStorage()
        ->getQuery()
        ->sort($this->entityType
        ->getKey('id'));
    $query->condition('reusable', TRUE);
    // Only add the pager if a limit is specified.
    if ($this->limit) {
        $query->pager($this->limit);
    }
    return $query->execute();
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.