You are here

public function EntityDuplicateController::__construct in Entity API 8

Constructs a new EntityDuplicateController object.

Parameters

\Drupal\Core\Entity\EntityRepositoryInterface $entity_repository: The entity repository.

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

\Drupal\Core\Form\FormBuilderInterface $form_builder: The form builder.

\Drupal\Core\StringTranslation\TranslationInterface $string_translation: The string translation.

File

src/Controller/EntityDuplicateController.php, line 52

Class

EntityDuplicateController

Namespace

Drupal\entity\Controller

Code

public function __construct(EntityRepositoryInterface $entity_repository, EntityTypeManagerInterface $entity_type_manager, FormBuilderInterface $form_builder, TranslationInterface $string_translation) {
  $this->entityRepository = $entity_repository;
  $this->entityTypeManager = $entity_type_manager;
  $this->formBuilder = $form_builder;
  $this->stringTranslation = $string_translation;
}