function EntityDisplayRebuilder::__construct
Same name and namespace in other branches
- 11.x core/modules/field/src/EntityDisplayRebuilder.php \Drupal\field\EntityDisplayRebuilder::__construct()
- 10 core/modules/field/src/EntityDisplayRebuilder.php \Drupal\field\EntityDisplayRebuilder::__construct()
- 9 core/modules/field/src/EntityDisplayRebuilder.php \Drupal\field\EntityDisplayRebuilder::__construct()
- 8.9.x core/modules/field/src/EntityDisplayRebuilder.php \Drupal\field\EntityDisplayRebuilder::__construct()
Constructs a new EntityDisplayRebuilder.
Parameters
\Drupal\Core\Entity\EntityTypeManagerInterface $entityTypeManager: The entity manager.
\Drupal\Core\Entity\EntityDisplayRepositoryInterface $entityDisplayRepository: The entity display repository.
\Drupal\Core\Entity\EntityTypeBundleInfoInterface $entityTypeBundleInfo: The entity type bundle info.
File
-
core/
modules/ field/ src/ EntityDisplayRebuilder.php, line 30
Class
- EntityDisplayRebuilder
- Rebuilds all form and view modes for a passed entity bundle.
Namespace
Drupal\fieldCode
public function __construct(protected EntityTypeManagerInterface $entityTypeManager, protected EntityDisplayRepositoryInterface $entityDisplayRepository, protected EntityTypeBundleInfoInterface $entityTypeBundleInfo) {
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.