You are here

public function BlockPermissionsPermissions::__construct in Block permissions 8

Constructs a new BlockPermissionsPermissions instance.

Parameters

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

\Drupal\Core\Extension\ThemeHandlerInterface $theme_handler: The theme handler.

File

src/BlockPermissionsPermissions.php, line 40

Class

BlockPermissionsPermissions
Provides dynamic permissions of the blocks module.

Namespace

Drupal\block_permissions

Code

public function __construct(BlockManagerInterface $block_manager, ThemeHandlerInterface $theme_handler) {
  $this->blockManager = $block_manager;
  $this->themeHandler = $theme_handler;
}