19 declare(strict_types=1);
42 if ($this->request->canUserUplaod()) {
43 yield $this->ui_factory->dropzone()->file()->standard(
44 $this->
language->txt(
'upload_modal_title'),
46 $this->
ctrl->getLinkTargetByClass(
47 \ilContainerResourceGUI::class,
50 $this->ui_factory->input()->field()->file(
51 $this->upload_handler,
52 $this->
language->txt(
'upload_field_title')
55 $this->ui_factory->button()->shy(
56 $this->
language->txt(
'select_files_from_computer'),
This is how the factory for UI elements looks.
__construct(private Request $request, private \ilCtrlInterface $ctrl, private Factory $ui_factory, private \ilLanguage $language, private UploadHandler $upload_handler)
language()
description: > Example for rendring a language glyph.