You are here

public function FieldCloner::__construct in Field tools 8

Constructs a new FieldCloner.

Parameters

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

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

File

src/FieldCloner.php, line 37

Class

FieldCloner
Contains methods for cloning fields.

Namespace

Drupal\field_tools

Code

public function __construct(EntityTypeManagerInterface $entity_type_manager, ModuleHandlerInterface $module_handler) {
  $this->entityTypeManager = $entity_type_manager;
  $this->moduleHandler = $module_handler;
}