protected function DefaultController::getList in Block List Override 1.0.x
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_list_override\ControllerCode
protected function getList() {
$contexts = $this->contextRepository
->getAvailableContexts();
return $this->blockManager
->getDefinitionsForContexts($contexts);
}