18 declare(strict_types=1);
43 $factory = $DIC->ui()->factory();
46 $input = $factory->input()->field()->image(
48 ImagePurpose::USER_DEFINED,
50 'Please provide an alternate text if necessary.',
51 $factory->input()->field()->text(
'Additional information')
54 $input = $input->withValue([
58 [ImagePurpose::INFORMATIVE->name, [
'alternate text']],
59 'additional metadata',
65 ImagePurpose::DECORATIVE->name,
66 'additional metadata',
71 $form = $factory->input()->container()->form()->standard(
"#", [$input]);
ImagePurpose
This enum provides options to categorise the purpose of an image, which will be used to determine whe...
Class ilUIDemoFileUploadHandlerGUI.