public EntityTypeBundleInfo::__construct(EntityTypeManagerInterface $entity_type_manager, LanguageManagerInterface $language_manager, ModuleHandlerInterface $module_handler, TypedDataManagerInterface $typed_data_manager, CacheBackendInterface $cache_backend)
Constructs a new EntityTypeBundleInfo.
Parameters
\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.
\Drupal\Core\Language\LanguageManagerInterface $language_manager: The language manager.
\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler.
\Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager: The typed data manager.
\Drupal\Core\Cache\CacheBackendInterface $cache_backend: The cache backend.
File
- core/lib/Drupal/Core/Entity/EntityTypeBundleInfo.php, line 68
Class
- EntityTypeBundleInfo
- Provides discovery and retrieval of entity type bundles.
Namespace
Drupal\Core\Entity
Code
public function __construct(EntityTypeManagerInterface $entity_type_manager, LanguageManagerInterface $language_manager, ModuleHandlerInterface $module_handler, TypedDataManagerInterface $typed_data_manager, CacheBackendInterface $cache_backend) { $this->entityTypeManager = $entity_type_manager; $this->languageManager = $language_manager; $this->moduleHandler = $module_handler; $this->typedDataManager = $typed_data_manager; $this->cacheBackend = $cache_backend; }
Please login to continue.