public function PanelsDisplayVariant::__construct in Panels 8.4
Same name and namespace in other branches
- 8.3 src/Plugin/DisplayVariant/PanelsDisplayVariant.php \Drupal\panels\Plugin\DisplayVariant\PanelsDisplayVariant::__construct()
Constructs a new PanelsDisplayVariant.
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.
\Drupal\panels\Plugin\DisplayBuilder\DisplayBuilderManagerInterface $builder_manager: The display builder plugin manager.
\Drupal\Core\Layout\LayoutPluginManagerInterface $layout_manager: The layout plugin manager.
Overrides BlockDisplayVariant::__construct
File
- src/
Plugin/ DisplayVariant/ PanelsDisplayVariant.php, line 102
Class
- PanelsDisplayVariant
- Provides a display variant that simply contains blocks.
Namespace
Drupal\panels\Plugin\DisplayVariantCode
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, DisplayBuilderManagerInterface $builder_manager, LayoutPluginManagerInterface $layout_manager) {
$this->moduleHandler = $module_handler;
$this->builderManager = $builder_manager;
$this->layoutManager = $layout_manager;
parent::__construct($configuration, $plugin_id, $plugin_definition, $context_handler, $account, $uuid_generator, $token, $block_manager, $condition_manager);
}