public function ExtraFieldBlockDeriver::__construct in Drupal 9
Same name and namespace in other branches
- 8 core/modules/layout_builder/src/Plugin/Derivative/ExtraFieldBlockDeriver.php \Drupal\layout_builder\Plugin\Derivative\ExtraFieldBlockDeriver::__construct()
- 10 core/modules/layout_builder/src/Plugin/Derivative/ExtraFieldBlockDeriver.php \Drupal\layout_builder\Plugin\Derivative\ExtraFieldBlockDeriver::__construct()
Constructs new FieldBlockDeriver.
Parameters
\Drupal\Core\Entity\EntityFieldManagerInterface $entity_field_manager: The entity field manager.
\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\EntityTypeRepositoryInterface $entity_type_repository: The entity type repository.
File
- core/
modules/ layout_builder/ src/ Plugin/ Derivative/ ExtraFieldBlockDeriver.php, line 67
Class
- ExtraFieldBlockDeriver
- Provides entity field block definitions for every field.
Namespace
Drupal\layout_builder\Plugin\DerivativeCode
public function __construct(EntityFieldManagerInterface $entity_field_manager, EntityTypeManagerInterface $entity_type_manager, EntityTypeBundleInfoInterface $entity_type_bundle_info, EntityTypeRepositoryInterface $entity_type_repository) {
$this->entityFieldManager = $entity_field_manager;
$this->entityTypeManager = $entity_type_manager;
$this->entityTypeBundleInfo = $entity_type_bundle_info;
$this->entityTypeRepository = $entity_type_repository;
}