You are here

public function BulkUploadForm::__construct in Lightning Media 8

Same name and namespace in other branches
  1. 8.4 modules/lightning_media_bulk_upload/src/Form/BulkUploadForm.php \Drupal\lightning_media_bulk_upload\Form\BulkUploadForm::__construct()
  2. 8.2 modules/lightning_media_bulk_upload/src/Form/BulkUploadForm.php \Drupal\lightning_media_bulk_upload\Form\BulkUploadForm::__construct()
  3. 8.3 modules/lightning_media_bulk_upload/src/Form/BulkUploadForm.php \Drupal\lightning_media_bulk_upload\Form\BulkUploadForm::__construct()

BulkUploadForm constructor.

Parameters

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

\Drupal\lightning_media\MediaHelper $helper: The media helper service.

\Drupal\Core\StringTranslation\TranslationInterface $translator: The string translation service.

File

modules/lightning_media_bulk_upload/src/Form/BulkUploadForm.php, line 43

Class

BulkUploadForm
A form for uploading multiple media assets at once.

Namespace

Drupal\lightning_media_bulk_upload\Form

Code

public function __construct(EntityTypeManagerInterface $entity_type_manager, MediaHelper $helper, TranslationInterface $translator) {
  $this->entityTypeManager = $entity_type_manager;
  $this->helper = $helper;
  $this
    ->setStringTranslation($translator);
}