You are here

function Theme::__construct in Context 8

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

Class

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

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;
}