You are here

public function ViewInclusion::__construct in Context 8

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

View constructor.

Parameters

array $configuration:

$plugin_id:

$plugin_definition:

\Drupal\Core\Entity\EntityTypeManager $entityTypeManager:

\Drupal\Core\Routing\CurrentRouteMatch:

Overrides ConditionPluginBase::__construct

File

src/Plugin/Condition/ViewInclusion.php, line 36

Class

ViewInclusion
Provides a 'Views' condition.

Namespace

Drupal\context\Plugin\Condition

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, EntityTypeManager $entityTypeManager, CurrentRouteMatch $currentRouteMatch) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->entityTypeManager = $entityTypeManager;
  $this->currentRouteMatch = $currentRouteMatch;
}