You are here

public function Theme::__construct in Context 8.4

Same name and namespace in other branches
  1. 8 src/Plugin/ContextReaction/Theme.php \Drupal\context\Plugin\ContextReaction\Theme::__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/Theme.php, line 39

Class

Theme
Provides a content reaction that will let you change theme.

Namespace

Drupal\context\Plugin\ContextReaction

Code

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