You are here

public function BookOutlineForm::__construct in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/book/src/Form/BookOutlineForm.php \Drupal\book\Form\BookOutlineForm::__construct()

Constructs a BookOutlineForm object.

Parameters

\Drupal\Core\Entity\EntityRepositoryInterface $entity_repository: The entity repository.

\Drupal\book\BookManagerInterface $book_manager: The BookManager service.

\Drupal\Core\Entity\EntityTypeBundleInfoInterface $entity_type_bundle_info: The entity type bundle service.

\Drupal\Component\Datetime\TimeInterface $time: The time service.

Overrides ContentEntityForm::__construct

File

core/modules/book/src/Form/BookOutlineForm.php, line 47

Class

BookOutlineForm
Displays the book outline form.

Namespace

Drupal\book\Form

Code

public function __construct(EntityRepositoryInterface $entity_repository, BookManagerInterface $book_manager, EntityTypeBundleInfoInterface $entity_type_bundle_info = NULL, TimeInterface $time = NULL) {
  parent::__construct($entity_repository, $entity_type_bundle_info, $time);
  $this->bookManager = $book_manager;
}