You are here

public function UrlPath::__construct in Views URL Path Arguments 8

Same name in this branch
  1. 8 src/Plugin/views/argument_default/UrlPath.php \Drupal\views_url_path_arguments\Plugin\views\argument_default\UrlPath::__construct()
  2. 8 src/Plugin/views/argument_validator/UrlPath.php \Drupal\views_url_path_arguments\Plugin\views\argument_validator\UrlPath::__construct()

Constructs a new Tid instance.

Parameters

array $configuration: A configuration array containing information about the plugin instance.

string $pluginId: The plugin_id for the plugin instance.

mixed $pluginDefinition: The plugin implementation definition. *

\Drupal\Core\Routing\RouteMatchInterface $routeMatch: The route match.

\Drupal\Core\Language\LanguageManagerInterface $languageManager: The language manager.

Overrides PluginBase::__construct

File

src/Plugin/views/argument_validator/UrlPath.php, line 50

Class

UrlPath
Convert an entity id to its url path.

Namespace

Drupal\views_url_path_arguments\Plugin\views\argument_validator

Code

public function __construct(array $configuration, $pluginId, $pluginDefinition, RouteMatchInterface $routeMatch, LanguageManagerInterface $languageManager) {
  parent::__construct($configuration, $pluginId, $pluginDefinition);
  $this->routeMatch = $routeMatch;
  $this->languageManager = $languageManager;
}