function BookManager::__construct

Same name in this branch
  1. 11.x core/modules/book/src/ProxyClass/BookManager.php \Drupal\book\ProxyClass\BookManager::__construct()
Same name and namespace in other branches
  1. 9 core/modules/book/src/BookManager.php \Drupal\book\BookManager::__construct()
  2. 8.9.x core/modules/book/src/BookManager.php \Drupal\book\BookManager::__construct()
  3. 10 core/modules/book/src/ProxyClass/BookManager.php \Drupal\book\ProxyClass\BookManager::__construct()
  4. 10 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.

\Drupal\Core\Language\LanguageManagerInterface $language_manager: The language manager.

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

\Drupal\Core\Cache\CacheBackendInterface $backend_chained_cache: The book chained backend cache service.

\Drupal\Core\Cache\CacheBackendInterface $memory_cache: The book memory cache service.

File

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

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, LanguageManagerInterface $language_manager, EntityRepositoryInterface $entity_repository, CacheBackendInterface $backend_chained_cache, CacheBackendInterface $memory_cache) {
    $this->entityTypeManager = $entity_type_manager;
    $this->stringTranslation = $translation;
    $this->configFactory = $config_factory;
    $this->bookOutlineStorage = $book_outline_storage;
    $this->renderer = $renderer;
    $this->languageManager = $language_manager;
    $this->entityRepository = $entity_repository;
    $this->backendChainedCache = $backend_chained_cache;
    $this->memoryCache = $memory_cache;
}

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