You are here

public function Raw::__construct in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/views/src/Plugin/views/argument_default/Raw.php \Drupal\views\Plugin\views\argument_default\Raw::__construct()
  2. 9 core/modules/views/src/Plugin/views/argument_default/Raw.php \Drupal\views\Plugin\views\argument_default\Raw::__construct()

Constructs a Raw 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\path_alias\AliasManagerInterface $alias_manager: The alias manager.

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

File

core/modules/views/src/Plugin/views/argument_default/Raw.php, line 52

Class

Raw
Default argument plugin to use the raw value from the URL.

Namespace

Drupal\views\Plugin\views\argument_default

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, AliasManagerInterface $alias_manager, CurrentPathStack $current_path) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->aliasManager = $alias_manager;
  $this->currentPath = $current_path;
}