function BookAdminEditForm::__construct

Same name and namespace in other branches
  1. 9 core/modules/book/src/Form/BookAdminEditForm.php \Drupal\book\Form\BookAdminEditForm::__construct()
  2. 10 core/modules/book/src/Form/BookAdminEditForm.php \Drupal\book\Form\BookAdminEditForm::__construct()
  3. 11.x core/modules/book/src/Form/BookAdminEditForm.php \Drupal\book\Form\BookAdminEditForm::__construct()

Constructs a new BookAdminEditForm.

Parameters

\Drupal\Core\Entity\EntityStorageInterface $node_storage: The custom block storage.

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

File

core/modules/book/src/Form/BookAdminEditForm.php, line 45

Class

BookAdminEditForm
Provides a form for administering a single book's hierarchy.

Namespace

Drupal\book\Form

Code

public function __construct(EntityStorageInterface $node_storage, BookManagerInterface $book_manager) {
    $this->nodeStorage = $node_storage;
    $this->bookManager = $book_manager;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.