public function FieldBulkCloneForm::__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/ FieldBulkCloneForm.php, line 50
Class
- FieldBulkCloneForm
- Provides a form to clone multiple fields from an entity bundle.
Namespace
Drupal\field_tools\FormCode
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;
}