public function ConfigFieldsExportToCodeForm::__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/ ConfigFieldsExportToCodeForm.php, line 48
Class
- ConfigFieldsExportToCodeForm
- 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;
}