You are here

function Blocks::__construct in Context 8

Same name and namespace in other branches
  1. 8.4 src/Plugin/ContextReaction/Blocks.php \Drupal\context\Plugin\ContextReaction\Blocks::__construct()
  2. 8.0 src/Plugin/ContextReaction/Blocks.php \Drupal\context\Plugin\ContextReaction\Blocks::__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/Blocks.php, line 89

Class

Blocks
Provides a content reaction that will let you place blocks in the current themes regions.

Namespace

Drupal\context\Plugin\ContextReaction

Code

function __construct(array $configuration, $pluginId, $pluginDefinition, UuidInterface $uuid, ThemeManagerInterface $themeManager, ThemeHandlerInterface $themeHandler, ContextRepositoryInterface $contextRepository, ContextHandlerInterface $contextHandler, AccountInterface $account) {
  parent::__construct($configuration, $pluginId, $pluginDefinition);
  $this->uuid = $uuid;
  $this->themeManager = $themeManager;
  $this->themeHandler = $themeHandler;
  $this->contextRepository = $contextRepository;
  $this->contextHandler = $contextHandler;
  $this->account = $account;
}