You are here

protected function DefaultController::getList in Block Blacklist [Deprecated] 8

Create the list of block IDs.

Return value

array An array of block definitions.

2 calls to DefaultController::getList()
DefaultController::list in src/Controller/DefaultController.php
List.
LayoutController::getList in src/Controller/LayoutController.php
Create the list of block IDs.
1 method overrides DefaultController::getList()
LayoutController::getList in src/Controller/LayoutController.php
Create the list of block IDs.

File

src/Controller/DefaultController.php, line 126

Class

DefaultController
Class DefaultController.

Namespace

Drupal\block_blacklist\Controller

Code

protected function getList() {
  $contexts = $this->contextRepository
    ->getAvailableContexts();
  return $this->blockManager
    ->getDefinitionsForContexts($contexts);
}