You are here

public function ContextBlockPageVariant::__construct in Context 8.4

Same name and namespace in other branches
  1. 8 src/Plugin/DisplayVariant/ContextBlockPageVariant.php \Drupal\context\Plugin\DisplayVariant\ContextBlockPageVariant::__construct()
  2. 8.0 src/Plugin/DisplayVariant/ContextBlockPageVariant.php \Drupal\context\Plugin\DisplayVariant\ContextBlockPageVariant::__construct()

Constructs a new ContextBlockPageVariant.

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\context\ContextManager $contextManager: The context module manager.

\Drupal\Core\Display\VariantManager $displayVariant: The variant manager.

\Drupal\Core\Theme\ThemeManagerInterface $themeManager: The Drupal theme manager service.

Overrides VariantBase::__construct

File

src/Plugin/DisplayVariant/ContextBlockPageVariant.php, line 79

Class

ContextBlockPageVariant
Provides a page display variant that decorates the main content with blocks.

Namespace

Drupal\context\Plugin\DisplayVariant

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, ContextManager $contextManager, VariantManager $displayVariant, ThemeManagerInterface $themeManager) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->contextManager = $contextManager;
  $this->displayVariant = $displayVariant;
  $this->themeManager = $themeManager;
}