function EntityDisplayRebuilder::__construct

Same name in other branches
  1. 8.9.x core/modules/field/src/EntityDisplayRebuilder.php \Drupal\field\EntityDisplayRebuilder::__construct()
  2. 10 core/modules/field/src/EntityDisplayRebuilder.php \Drupal\field\EntityDisplayRebuilder::__construct()
  3. 11.x core/modules/field/src/EntityDisplayRebuilder.php \Drupal\field\EntityDisplayRebuilder::__construct()

Constructs a new EntityDisplayRebuilder.

Parameters

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

\Drupal\Core\Entity\EntityDisplayRepositoryInterface $entity_display_repository: The entity display repository.

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

File

core/modules/field/src/EntityDisplayRebuilder.php, line 51

Class

EntityDisplayRebuilder
Rebuilds all form and view modes for a passed entity bundle.

Namespace

Drupal\field

Code

public function __construct(EntityTypeManagerInterface $entity_type_manager, EntityDisplayRepositoryInterface $entity_display_repository, EntityTypeBundleInfoInterface $entity_type_bundle_info) {
    $this->entityTypeManager = $entity_type_manager;
    $this->entityDisplayRepository = $entity_display_repository;
    $this->entityTypeBundleInfo = $entity_type_bundle_info;
}

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