You are here

public function ContextBlockPageVariant::__construct in Context 8

Same name and namespace in other branches
  1. 8.4 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.

ContextManager $contextManager: The context module manager.

Overrides VariantBase::__construct

File

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

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) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->contextManager = $contextManager;
}