ImageUploadComponentTrait
Exposes the reusable component for uploading the main image.
The field is added to the form with Form::addImageUpload().
Usage (inside {form ...} of the template):
{control imageUpload $form, 'image', $imageUrl}
Table of Contents
Properties
Methods
Properties
$imageUploadFactory
public
ImageUploadFactory
$imageUploadFactory
Attributes
- #[Inject]
Methods
createComponentImageUpload()
protected
createComponentImageUpload() : ImageUpload