public function PathCondition::__construct in Access Filter 8
Creates a new PathCondition 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.
\Drupal\Core\Path\PathMatcherInterface $path_matcher: The path matcher.
Overrides PluginBase::__construct
File
- src/
Plugin/ AccessFilter/ Condition/ PathCondition.php, line 42
Class
- PathCondition
- Filter condition using drupal path.
Namespace
Drupal\access_filter\Plugin\AccessFilter\ConditionCode
public function __construct(array $configuration, $plugin_id, $plugin_definition, PathMatcherInterface $path_matcher) {
parent::__construct($configuration, $plugin_id, $plugin_definition);
$this->pathMatcher = $path_matcher;
}