public function ViewInclusion::__construct in Context 8.4
Same name and namespace in other branches
- 8 src/Plugin/Condition/ViewInclusion.php \Drupal\context\Plugin\Condition\ViewInclusion::__construct()
View constructor.
Parameters
array $configuration: The plugin configuration, i.e. an array with configuration values keyed by configuration option name. The special key 'context' may be used to initialize the defined contexts by setting it to an array of context values keyed by context names.
string $plugin_id: The plugin_id for the plugin instance.
mixed $plugin_definition: The plugin implementation definition.
\Drupal\Core\Entity\EntityTypeManagerInterface $entityTypeManager: The entity type manager.
\Drupal\Core\Routing\CurrentRouteMatch $currentRouteMatch: The current route match service.
Overrides ConditionPluginBase::__construct
File
- src/
Plugin/ Condition/ ViewInclusion.php, line 53
Class
- ViewInclusion
- Provides a 'Views' condition.
Namespace
Drupal\context\Plugin\ConditionCode
public function __construct(array $configuration, $plugin_id, $plugin_definition, EntityTypeManagerInterface $entityTypeManager, CurrentRouteMatch $currentRouteMatch) {
parent::__construct($configuration, $plugin_id, $plugin_definition);
$this->entityTypeManager = $entityTypeManager;
$this->currentRouteMatch = $currentRouteMatch;
}