EntityBundleListener::__construct

public EntityBundleListener::__construct(EntityTypeManagerInterface $entity_type_manager, EntityTypeBundleInfoInterface $entity_type_bundle_info, EntityFieldManagerInterface $entity_field_manager, ModuleHandlerInterface $module_handler)

Constructs a new EntityBundleListener.

Parameters

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

\Drupal\Core\Entity\EntityTypeBundleInfoInterface $entity_type_bundle_info: The entity type bundle info.

\Drupal\Core\Entity\EntityFieldManagerInterface $entity_field_manager: The entity field manager.

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

File

core/lib/Drupal/Core/Entity/EntityBundleListener.php, line 52

Class

EntityBundleListener
Reacts to entity bundle CRUD on behalf of the Entity system.

Namespace

Drupal\Core\Entity

Code

public function __construct(EntityTypeManagerInterface $entity_type_manager, EntityTypeBundleInfoInterface $entity_type_bundle_info, EntityFieldManagerInterface $entity_field_manager, ModuleHandlerInterface $module_handler) {
  $this->entityTypeManager = $entity_type_manager;
  $this->entityTypeBundleInfo = $entity_type_bundle_info;
  $this->entityFieldManager = $entity_field_manager;
  $this->moduleHandler = $module_handler;
}
doc_Drupal
2016-10-29 09:04:38
Comments
Leave a Comment

Please login to continue.