You are here

public function BlockLibraryController::__construct in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/block/src/Controller/BlockLibraryController.php \Drupal\block\Controller\BlockLibraryController::__construct()

Constructs a BlockLibraryController object.

Parameters

\Drupal\Core\Block\BlockManagerInterface $block_manager: The block manager.

\Drupal\Core\Plugin\Context\LazyContextRepository $context_repository: The context repository.

\Drupal\Core\Routing\RouteMatchInterface $route_match: The current route match.

\Drupal\Core\Menu\LocalActionManagerInterface $local_action_manager: The local action manager.

File

core/modules/block/src/Controller/BlockLibraryController.php, line 66
Contains \Drupal\block\Controller\BlockLibraryController.

Class

BlockLibraryController
Provides a list of block plugins to be added to the layout.

Namespace

Drupal\block\Controller

Code

public function __construct(BlockManagerInterface $block_manager, LazyContextRepository $context_repository, RouteMatchInterface $route_match, LocalActionManagerInterface $local_action_manager) {
  $this->blockManager = $block_manager;
  $this->routeMatch = $route_match;
  $this->localActionManager = $local_action_manager;
  $this->contextRepository = $context_repository;
}