You are here

public function BookNavigationBlock::__construct in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 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.

\Symfony\Component\HttpFoundation\RequestStack $request_stack: The request stack object.

\Drupal\book\BookManagerInterface $book_manager: The book manager.

\Drupal\Core\Entity\EntityStorageInterface $node_storage: The node storage.

Overrides BlockBase::__construct

File

core/modules/book/src/Plugin/Block/BookNavigationBlock.php, line 67
Contains \Drupal\book\Plugin\Block\BookNavigationBlock.

Class

BookNavigationBlock
Provides a 'Book navigation' block.

Namespace

Drupal\book\Plugin\Block

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, RequestStack $request_stack, BookManagerInterface $book_manager, EntityStorageInterface $node_storage) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->requestStack = $request_stack;
  $this->bookManager = $book_manager;
  $this->nodeStorage = $node_storage;
}