You are here

public function FieldConfigCloneForm::__construct in Field tools 8

Creates a Clone instance.

Parameters

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

\Drupal\Core\Entity\EntityTypeBundleInfoInterface $entity_type_bundle_info: The entity type bundle info service.

\Drupal\field_tools\FieldCloner $field_cloner: The field cloner.

File

src/Form/FieldConfigCloneForm.php, line 50

Class

FieldConfigCloneForm
Provides a form for cloning a field.

Namespace

Drupal\field_tools\Form

Code

public function __construct(EntityTypeManagerInterface $entity_type_manager, EntityTypeBundleInfoInterface $entity_type_bundle_info, FieldCloner $field_cloner) {
  $this->entityTypeManager = $entity_type_manager;
  $this->entityTypeBundleInfo = $entity_type_bundle_info;
  $this->fieldCloner = $field_cloner;
}