You are here

public function PageBlockDisplayVariant::__construct in Page Manager 8

Same name and namespace in other branches
  1. 8.4 src/Plugin/DisplayVariant/PageBlockDisplayVariant.php \Drupal\page_manager\Plugin\DisplayVariant\PageBlockDisplayVariant::__construct()

Constructs a new BlockDisplayVariant.

Parameters

array $configuration: A configuration array containing information about the plugin instance.

string $plugin_id: The plugin ID for the plugin instance.

mixed $plugin_definition: The plugin implementation definition.

\Drupal\Core\Plugin\Context\ContextHandlerInterface $context_handler: The context handler.

\Drupal\Core\Session\AccountInterface $account: The current user.

\Drupal\Component\Uuid\UuidInterface $uuid_generator: The UUID generator.

\Drupal\Core\Utility\Token $token: The token service.

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

\Drupal\Core\Condition\ConditionManager $condition_manager: The condition manager.

\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler.

Overrides BlockDisplayVariant::__construct

File

src/Plugin/DisplayVariant/PageBlockDisplayVariant.php, line 71
Contains \Drupal\page_manager\Plugin\DisplayVariant\PageBlockDisplayVariant.

Class

PageBlockDisplayVariant
Provides a variant plugin that simply contains blocks.

Namespace

Drupal\page_manager\Plugin\DisplayVariant

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, ContextHandlerInterface $context_handler, AccountInterface $account, UuidInterface $uuid_generator, Token $token, BlockManager $block_manager, ConditionManager $condition_manager, ModuleHandlerInterface $module_handler) {
  parent::__construct($configuration, $plugin_id, $plugin_definition, $context_handler, $account, $uuid_generator, $token, $block_manager, $condition_manager);
  $this->moduleHandler = $module_handler;
}