public function DisplayCloner::__construct in Field tools 8
Constructs a new FieldCloner.
Parameters
\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.
\Drupal\Core\Entity\EntityFieldManagerInterface $entity_field_manager: The entity field manager service.
\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler.
File
- src/
DisplayCloner.php, line 46
Class
- DisplayCloner
- Contains methods for cloning displays.
Namespace
Drupal\field_toolsCode
public function __construct(EntityTypeManagerInterface $entity_type_manager, EntityFieldManagerInterface $entity_field_manager, ModuleHandlerInterface $module_handler) {
$this->entityTypeManager = $entity_type_manager;
$this->entityFieldManager = $entity_field_manager;
$this->moduleHandler = $module_handler;
}