function BlockListBuilder::getEntityIds

Same name in other branches
  1. 9 core/modules/block/src/BlockListBuilder.php \Drupal\block\BlockListBuilder::getEntityIds()
  2. 8.9.x core/modules/block/src/BlockListBuilder.php \Drupal\block\BlockListBuilder::getEntityIds()
  3. 10 core/modules/block/src/BlockListBuilder.php \Drupal\block\BlockListBuilder::getEntityIds()

Overrides EntityListBuilder::getEntityIds

File

core/modules/block/src/BlockListBuilder.php, line 348

Class

BlockListBuilder
Defines a class to build a listing of block entities.

Namespace

Drupal\block

Code

protected function getEntityIds() {
    return $this->getStorage()
        ->getQuery()
        ->condition('theme', $this->getThemeName())
        ->sort($this->entityType
        ->getKey('id'))
        ->execute();
}

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