function BlockListController::__construct

Same name in other branches
  1. 8.9.x core/modules/block/src/Controller/BlockListController.php \Drupal\block\Controller\BlockListController::__construct()
  2. 10 core/modules/block/src/Controller/BlockListController.php \Drupal\block\Controller\BlockListController::__construct()
  3. 11.x core/modules/block/src/Controller/BlockListController.php \Drupal\block\Controller\BlockListController::__construct()

Constructs the BlockListController.

Parameters

\Drupal\Core\Extension\ThemeHandlerInterface $theme_handler: The theme handler.

File

core/modules/block/src/Controller/BlockListController.php, line 29

Class

BlockListController
Defines a controller to list blocks.

Namespace

Drupal\block\Controller

Code

public function __construct(ThemeHandlerInterface $theme_handler) {
    $this->themeHandler = $theme_handler;
}

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