function FieldBlockDeriver::__construct

Same name and namespace in other branches
  1. 11.x core/modules/layout_builder/src/Plugin/Derivative/FieldBlockDeriver.php \Drupal\layout_builder\Plugin\Derivative\FieldBlockDeriver::__construct()
  2. 10 core/modules/layout_builder/src/Plugin/Derivative/FieldBlockDeriver.php \Drupal\layout_builder\Plugin\Derivative\FieldBlockDeriver::__construct()
  3. 9 core/modules/layout_builder/src/Plugin/Derivative/FieldBlockDeriver.php \Drupal\layout_builder\Plugin\Derivative\FieldBlockDeriver::__construct()
  4. 8.9.x core/modules/layout_builder/src/Plugin/Derivative/FieldBlockDeriver.php \Drupal\layout_builder\Plugin\Derivative\FieldBlockDeriver::__construct()

Constructs new FieldBlockDeriver.

Parameters

\Drupal\Core\Entity\EntityTypeRepositoryInterface $entityTypeRepository: The entity type repository.

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

\Drupal\Core\Field\FieldTypePluginManagerInterface $fieldTypeManager: The field type manager.

\Drupal\Core\Field\FormatterPluginManager $formatterManager: The formatter manager.

\Drupal\Core\Config\Entity\ConfigEntityStorageInterface $entityViewDisplayStorage: The entity view display storage.

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

File

core/modules/layout_builder/src/Plugin/Derivative/FieldBlockDeriver.php, line 48

Class

FieldBlockDeriver
Provides entity field block definitions for every field.

Namespace

Drupal\layout_builder\Plugin\Derivative

Code

public function __construct(protected EntityTypeRepositoryInterface $entityTypeRepository, protected EntityFieldManagerInterface $entityFieldManager, protected FieldTypePluginManagerInterface $fieldTypeManager, protected FormatterPluginManager $formatterManager, protected ConfigEntityStorageInterface $entityViewDisplayStorage, protected ModuleHandlerInterface $moduleHandler) {
}

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