public function RouteCondition::__construct in Route Condition 8
Same name and namespace in other branches
- 2.0.x src/Plugin/Condition/RouteCondition.php \Drupal\route_condition\Plugin\Condition\RouteCondition::__construct()
Constructs a Route condition plugin.
Parameters
\Drupal\Core\Routing\CurrentRouteMatch $current_route_match: The CurrentRouteMatch service.
array $configuration: A configuration array containing information about the plugin instance.
string $plugin_id: The plugin_id for the plugin instance.
array $plugin_definition: The plugin implementation definition.
Overrides ConditionPluginBase::__construct
File
- src/
Plugin/ Condition/ RouteCondition.php, line 41
Class
- RouteCondition
- Provides a 'Route' condition.
Namespace
Drupal\route_condition\Plugin\ConditionCode
public function __construct(CurrentRouteMatch $current_route_match, array $configuration, $plugin_id, array $plugin_definition) {
parent::__construct($configuration, $plugin_id, $plugin_definition);
$this->currentRouteMatch = $current_route_match;
}