You are here

public function BlockPermissionsAccessControlHandler::__construct in Block permissions 8

Constructs the block access control handler instance.

Parameters

\Drupal\Core\Block\BlockManagerInterface $block_manager: Plugin manager.

\Drupal\Core\Session\AccountInterface $current_user: Current user.

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The config factory service.

File

src/BlockPermissionsAccessControlHandler.php, line 61

Class

BlockPermissionsAccessControlHandler
Controller for the block permissions.

Namespace

Drupal\block_permissions

Code

public function __construct(BlockManagerInterface $block_manager, AccountInterface $current_user, ConfigFactoryInterface $config_factory) {
  $this->blockManager = $block_manager;
  $this->currentUser = $current_user;
  $this->configFactory = $config_factory;
}