public static function TopLevelBook::create in Drupal 10
Same name and namespace in other branches
- 8 core/modules/book/src/Plugin/views/argument_default/TopLevelBook.php \Drupal\book\Plugin\views\argument_default\TopLevelBook::create()
- 9 core/modules/book/src/Plugin/views/argument_default/TopLevelBook.php \Drupal\book\Plugin\views\argument_default\TopLevelBook::create()
Overrides Node::create
File
- core/
modules/ book/ src/ Plugin/ views/ argument_default/ TopLevelBook.php, line 49
Class
- TopLevelBook
- Default argument plugin to get the current node's top level book.
Namespace
Drupal\book\Plugin\views\argument_defaultCode
public static function create(ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition) {
return new static($configuration, $plugin_id, $plugin_definition, $container
->get('current_route_match'), $container
->get('entity_type.manager')
->getStorage('node'));
}