public function BulkUploadForm::__construct in Lightning Media 8.2
Same name and namespace in other branches
- 8.4 modules/lightning_media_bulk_upload/src/Form/BulkUploadForm.php \Drupal\lightning_media_bulk_upload\Form\BulkUploadForm::__construct()
- 8 modules/lightning_media_bulk_upload/src/Form/BulkUploadForm.php \Drupal\lightning_media_bulk_upload\Form\BulkUploadForm::__construct()
- 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\FormCode
public function __construct(EntityTypeManagerInterface $entity_type_manager, MediaHelper $helper, TranslationInterface $translator) {
$this->entityTypeManager = $entity_type_manager;
$this->helper = $helper;
$this
->setStringTranslation($translator);
}