/** * Constructs a new PanelsDisplayVariant. * * @param array $configuration * A configuration array containing information about the plugin instance. * @param string $plugin_id * The plugin ID for the plugin instance. * @param mixed $plugin_definition * The plugin implementation definition. * @param \Drupal\Core\Plugin\Context\ContextHandlerInterface $context_handler * The context handler. * @param \Drupal\Core\Session\AccountInterface $account * The current user. * @param \Drupal\Component\Uuid\UuidInterface $uuid_generator * The UUID generator. * @param \Drupal\Core\Utility\Token $token * The token service. * @param \Drupal\Core\Block\BlockManager $block_manager * The block manager. * @param \Drupal\Core\Condition\ConditionManager $condition_manager * The condition manager. * @param \Drupal\panels\Plugin\DisplayBuilder\DisplayBuilderManagerInterface $builder_manager * The display builder plugin manager. * @param \Drupal\layout_plugin\Plugin\Layout\LayoutPluginManagerInterface $layout_manager * The layout plugin manager. */ 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, DisplayBuilderManagerInterface $builder_manager, LayoutPluginManagerInterface $layout_manager) { $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); }
/** * Constructs a new BlockDisplayVariant. * * @param array $configuration * A configuration array containing information about the plugin instance. * @param string $plugin_id * The plugin ID for the plugin instance. * @param mixed $plugin_definition * The plugin implementation definition. * @param \Drupal\Core\Plugin\Context\ContextHandlerInterface $context_handler * The context handler. * @param \Drupal\Core\Session\AccountInterface $account * The current user. * @param \Drupal\Component\Uuid\UuidInterface $uuid_generator * The UUID generator. * @param \Drupal\Core\Utility\Token $token * The token service. * @param \Drupal\Core\Block\BlockManager $block_manager * The block manager. * @param \Drupal\Core\Condition\ConditionManager $condition_manager * The condition manager. * @param \Drupal\Core\Extension\ModuleHandlerInterface $module_handler * The module handler. */ 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; }