You are here

public function EntityDisplayBulkCloneForm::__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\Core\Entity\EntityDisplayRepositoryInterface $entity_display_repository: The entity display repository service.

\Drupal\field_tools\DisplayCloner $display_cloner: The display cloner.

File

src/Form/EntityDisplayBulkCloneForm.php, line 58

Class

EntityDisplayBulkCloneForm
Provides a form to clone displays from an entity bundle.

Namespace

Drupal\field_tools\Form

Code

public function __construct(EntityTypeManagerInterface $entity_type_manager, EntityTypeBundleInfoInterface $entity_type_bundle_info, EntityDisplayRepositoryInterface $entity_display_repository, DisplayCloner $display_cloner) {
  $this->entityTypeManager = $entity_type_manager;
  $this->entityTypeBundleInfo = $entity_type_bundle_info;
  $this->entityDisplayRepository = $entity_display_repository;
  $this->displayCloner = $display_cloner;
}