public static function Nid::create in Drupal 10
Same name and namespace in other branches
- 8 core/modules/node/src/Plugin/views/argument/Nid.php \Drupal\node\Plugin\views\argument\Nid::create()
- 9 core/modules/node/src/Plugin/views/argument/Nid.php \Drupal\node\Plugin\views\argument\Nid::create()
File
- core/
modules/ node/ src/ Plugin/ views/ argument/ Nid.php, line 43
Class
- Nid
- Argument handler to accept a node id.
Namespace
Drupal\node\Plugin\views\argumentCode
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'));
}