function BookNavigationBlock::create
Same name in other branches
- 8.9.x core/modules/book/src/Plugin/Block/BookNavigationBlock.php \Drupal\book\Plugin\Block\BookNavigationBlock::create()
- 10 core/modules/book/src/Plugin/Block/BookNavigationBlock.php \Drupal\book\Plugin\Block\BookNavigationBlock::create()
- 11.x core/modules/book/src/Plugin/Block/BookNavigationBlock.php \Drupal\book\Plugin\Block\BookNavigationBlock::create()
Overrides ContainerFactoryPluginInterface::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'));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.