You are here

public function EntityDisplaySettingsBulkCopyForm::__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\EntityFieldManagerInterface $entity_field_manager: The entity field manager service.

\Drupal\Core\Entity\EntityDisplayRepositoryInterface $entity_display_repository: The entity display repository service.

\Drupal\field_tools\DisplaySettingsCopier $display_settings_copier: The display settings copier.

File

src/Form/EntityDisplaySettingsBulkCopyForm.php, line 68

Class

EntityDisplaySettingsBulkCopyForm
Provides a form to copy displays settings between displays.

Namespace

Drupal\field_tools\Form

Code

public function __construct(EntityTypeManagerInterface $entity_type_manager, EntityTypeBundleInfoInterface $entity_type_bundle_info, EntityFieldManagerInterface $entity_field_manager, EntityDisplayRepositoryInterface $entity_display_repository, DisplaySettingsCopier $display_settings_copier) {
  $this->entityTypeManager = $entity_type_manager;
  $this->entityTypeBundleInfo = $entity_type_bundle_info;
  $this->entityFieldManager = $entity_field_manager;
  $this->entityDisplayRepository = $entity_display_repository;
  $this->displaySettingsCopier = $display_settings_copier;
}