public function DefaultController::__construct in Block List Override 1.0.x
Constructs a new DefaultController object.
Parameters
Drupal\Core\Block\BlockManagerInterface $block_manager: The Block Manager service.
Drupal\Core\Plugin\Context\LazyContextRepository $context_repository: The Context Repository service.
\Drupal\Core\Config\ConfigFactoryInterface $config_factory: Configuration factory.
\Drupal\block_list_override\BlockListOverride $list_service: The Block List Override service.
File
- src/
Controller/ DefaultController.php, line 57
Class
- DefaultController
- Class DefaultController.
Namespace
Drupal\block_list_override\ControllerCode
public function __construct(BlockManagerInterface $block_manager, LazyContextRepository $context_repository, ConfigFactoryInterface $config_factory, BlockListOverride $list_service) {
$this->blockManager = $block_manager;
$this->contextRepository = $context_repository;
$this->configFactory = $config_factory;
$this->listService = $list_service;
}