You are here

public static function Raw::create 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::create()
  2. 9 core/modules/views/src/Plugin/views/argument_default/Raw.php \Drupal\views\Plugin\views\argument_default\Raw::create()

File

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

Class

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

Namespace

Drupal\views\Plugin\views\argument_default

Code

public static function create(ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition) {
  return new static($configuration, $plugin_id, $plugin_definition, $container
    ->get('path_alias.manager'), $container
    ->get('path.current'));
}