function BookNavigationBlock::__construct
Same name in other branches
- 9 core/modules/book/src/Plugin/Block/BookNavigationBlock.php \Drupal\book\Plugin\Block\BookNavigationBlock::__construct()
- 8.9.x core/modules/book/src/Plugin/Block/BookNavigationBlock.php \Drupal\book\Plugin\Block\BookNavigationBlock::__construct()
- 11.x core/modules/book/src/Plugin/Block/BookNavigationBlock.php \Drupal\book\Plugin\Block\BookNavigationBlock::__construct()
Constructs a new BookNavigationBlock instance.
Parameters
array $configuration: A configuration array containing information about the plugin instance.
string $plugin_id: The plugin_id for the plugin instance.
mixed $plugin_definition: The plugin implementation definition.
\Drupal\Core\Routing\RouteMatchInterface $route_match: The current route match.
\Drupal\book\BookManagerInterface $book_manager: The book manager.
\Drupal\Core\Entity\EntityStorageInterface $node_storage: The node storage.
Overrides BlockPluginTrait::__construct
File
-
core/
modules/ book/ src/ Plugin/ Block/ BookNavigationBlock.php, line 64
Class
- BookNavigationBlock
- Provides a 'Book navigation' block.
Namespace
Drupal\book\Plugin\BlockCode
public function __construct(array $configuration, $plugin_id, $plugin_definition, RouteMatchInterface $route_match, BookManagerInterface $book_manager, EntityStorageInterface $node_storage) {
parent::__construct($configuration, $plugin_id, $plugin_definition);
$this->routeMatch = $route_match;
$this->bookManager = $book_manager;
$this->nodeStorage = $node_storage;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.