You are here

public static function Vid::create in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/node/src/Plugin/views/argument/Vid.php \Drupal\node\Plugin\views\argument\Vid::create()
  2. 9 core/modules/node/src/Plugin/views/argument/Vid.php \Drupal\node\Plugin\views\argument\Vid::create()

File

core/modules/node/src/Plugin/views/argument/Vid.php, line 43

Class

Vid
Argument handler to accept a node revision id.

Namespace

Drupal\node\Plugin\views\argument

Code

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