function BookManager::__construct

Same name in other branches
  1. 9 core/modules/book/src/BookManager.php \Drupal\book\BookManager::__construct()
  2. 10 core/modules/book/src/ProxyClass/BookManager.php \Drupal\book\ProxyClass\BookManager::__construct()
  3. 10 core/modules/book/src/BookManager.php \Drupal\book\BookManager::__construct()
  4. 11.x core/modules/book/src/ProxyClass/BookManager.php \Drupal\book\ProxyClass\BookManager::__construct()
  5. 11.x core/modules/book/src/BookManager.php \Drupal\book\BookManager::__construct()

Constructs a BookManager object.

Parameters

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.

\Drupal\Core\StringTranslation\TranslationInterface $translation: The string translation service.

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The config factory.

\Drupal\book\BookOutlineStorageInterface $book_outline_storage: The book outline storage.

\Drupal\Core\Render\RendererInterface $renderer: The renderer.

File

core/modules/book/src/BookManager.php, line 91

Class

BookManager
Defines a book manager.

Namespace

Drupal\book

Code

public function __construct(EntityTypeManagerInterface $entity_type_manager, TranslationInterface $translation, ConfigFactoryInterface $config_factory, BookOutlineStorageInterface $book_outline_storage, RendererInterface $renderer) {
    $this->entityTypeManager = $entity_type_manager;
    $this->stringTranslation = $translation;
    $this->configFactory = $config_factory;
    $this->bookOutlineStorage = $book_outline_storage;
    $this->renderer = $renderer;
}

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