You are here

public function BookManager::__construct in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/book/src/BookManager.php \Drupal\book\BookManager::__construct()
  2. 9 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 125

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;
}