Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. BlockLibraryController.php

function BlockLibraryController::__construct

Constructs a BlockLibraryController object.

Parameters

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

\Drupal\Core\Plugin\Context\ContextRepositoryInterface $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 60

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, ContextRepositoryInterface $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;
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal