EntityDisplayRepository::__construct

public EntityDisplayRepository::__construct(EntityTypeManagerInterface $entity_type_manager, ModuleHandlerInterface $module_handler, CacheBackendInterface $cache_backend, LanguageManagerInterface $language_manager)

Constructs a new EntityDisplayRepository.

Parameters

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

\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler.

\Drupal\Core\Cache\CacheBackendInterface $cache_backend: The cache backend.

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

File

core/lib/Drupal/Core/Entity/EntityDisplayRepository.php, line 60

Class

EntityDisplayRepository
Provides a repository for entity display objects (view modes and form modes).

Namespace

Drupal\Core\Entity

Code

public function __construct(EntityTypeManagerInterface $entity_type_manager, ModuleHandlerInterface $module_handler, CacheBackendInterface $cache_backend, LanguageManagerInterface $language_manager) {
  $this->entityTypeManager = $entity_type_manager;
  $this->moduleHandler = $module_handler;
  $this->cacheBackend = $cache_backend;
  $this->languageManager = $language_manager;
}
doc_Drupal
2016-10-29 09:05:54
Comments
Leave a Comment

Please login to continue.