public function DefaultController::__construct in Block Blacklist [Deprecated] 8
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_blacklist\Blacklist $blacklist_service: The Block Blacklist service.
File
- src/
Controller/ DefaultController.php, line 57
Class
- DefaultController
- Class DefaultController.
Namespace
Drupal\block_blacklist\ControllerCode
public function __construct(BlockManagerInterface $block_manager, LazyContextRepository $context_repository, ConfigFactoryInterface $config_factory, Blacklist $blacklist_service) {
$this->blockManager = $block_manager;
$this->contextRepository = $context_repository;
$this->configFactory = $config_factory;
$this->blacklistService = $blacklist_service;
}