You are here

public function Paths::__construct in Administration Language Negotiation 8

Constructs a RequestPath condition plugin.

Parameters

\Drupal\path_alias\AliasManagerInterface $alias_manager: An alias manager to find the alias for the current system path.

\Drupal\Core\Path\PathMatcherInterface $path_matcher: The path matcher service.

\Symfony\Component\HttpFoundation\RequestStack $request_stack: The request stack.

\Drupal\Core\Path\CurrentPathStack $current_path: The current path.

\Drupal\Core\Config\ConfigFactory $config_factory: The config factory.

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.

\Drupal\language\ConfigurableLanguageManager $language_manager: The language manager.

Overrides ConditionPluginBase::__construct

File

src/Plugin/AdministrationLanguageNegotiationCondition/Paths.php, line 94

Class

Paths
Class for the Blacklisted paths condition plugin.

Namespace

Drupal\administration_language_negotiation\Plugin\AdministrationLanguageNegotiationCondition

Code

public function __construct(AliasManagerInterface $alias_manager, PathMatcherInterface $path_matcher, RequestStack $request_stack, CurrentPathStack $current_path, ConfigFactory $config_factory, array $configuration, $plugin_id, array $plugin_definition, ConfigurableLanguageManager $language_manager) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->aliasManager = $alias_manager;
  $this->pathMatcher = $path_matcher;
  $this->requestStack = $request_stack;
  $this->currentPath = $current_path;
  $this->configFactory = $config_factory;
  $this->languageManager = $language_manager;
}