You are here

function Regions::__construct in Context 8

Same name and namespace in other branches
  1. 8.4 src/Plugin/ContextReaction/Regions.php \Drupal\context\Plugin\ContextReaction\Regions::__construct()

Constructs a \Drupal\Component\Plugin\PluginBase object.

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.

Overrides ContextReactionPluginBase::__construct

File

src/Plugin/ContextReaction/Regions.php, line 42

Class

Regions
Provides a content reaction that will let you disable regions.

Namespace

Drupal\context\Plugin\ContextReaction

Code

function __construct(array $configuration, $pluginId, $pluginDefinition, ThemeManagerInterface $themeManager, ThemeHandlerInterface $themeHandler) {
  parent::__construct($configuration, $pluginId, $pluginDefinition);
  $this->themeManager = $themeManager;
  $this->themeHandler = $themeHandler;
}