You are here

public function LanguageSelectionPageConditionPath::__construct in Language Selection Page 8.2

Constructs a LanguageSelectionPageConditionPath plugin.

Parameters

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The configuration factory.

\Drupal\path_alias\AliasManagerInterface $alias_manager: The alias manager.

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

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

\Drupal\Core\Routing\RouteBuilderInterface $route_builder: The route builder service.

\Drupal\Core\Cache\CacheBackendInterface $cache_config: A cache backend used to store configuration.

\Drupal\Core\Path\PathValidatorInterface $path_validator: The path validator.

\Drupal\Core\Messenger\MessengerInterface $messenger: The drupal messenger.

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/LanguageSelectionPageCondition/LanguageSelectionPageConditionPath.php, line 115

Class

LanguageSelectionPageConditionPath
Class for the Path condition plugin.

Namespace

Drupal\language_selection_page\Plugin\LanguageSelectionPageCondition

Code

public function __construct(ConfigFactoryInterface $config_factory, AliasManagerInterface $alias_manager, RequestStack $request_stack, CurrentPathStack $current_path, RouteBuilderInterface $route_builder, CacheBackendInterface $cache_config, PathValidatorInterface $path_validator, MessengerInterface $messenger, array $configuration, $plugin_id, array $plugin_definition) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->configFactory = $config_factory;
  $this->aliasManager = $alias_manager;
  $this->requestStack = $request_stack;
  $this->currentPath = $current_path;
  $this->routeBuilder = $route_builder;
  $this->cacheConfig = $cache_config;
  $this->pathValidator = $path_validator;
  $this->messenger = $messenger;
}