public static function BookNavigationBlock::create in Drupal 10
Same name and namespace in other branches
- 8 core/modules/book/src/Plugin/Block/BookNavigationBlock.php \Drupal\book\Plugin\Block\BookNavigationBlock::create()
- 9 core/modules/book/src/Plugin/Block/BookNavigationBlock.php \Drupal\book\Plugin\Block\BookNavigationBlock::create()
File
- core/
modules/ book/ src/ Plugin/ Block/ BookNavigationBlock.php, line 74
Class
- BookNavigationBlock
- Provides a 'Book navigation' block.
Namespace
Drupal\book\Plugin\BlockCode
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('book.manager'), $container
->get('entity_type.manager')
->getStorage('node'));
}