public function Context::__construct

Sets the contextDefinition for us without needing to call the setter.

File

drupal/core/lib/Drupal/Component/Plugin/Context/Context.php, line 36
Contains \Drupal\Component\Plugin\Context\Context.

Class

Context
A generic context class for wrapping data a plugin needs to operate.

Namespace

Drupal\Component\Plugin\Context

Code

public function __construct(array $context_definition) {
  $this->contextDefinition = $context_definition;
}