Warning: You are browsing the documentation for PrestaShop 8, which is outdated.
You might want to read an updated version of this page for the current version, PrestaShop 9. Read the updated version of this page
This form type is used to display an image value without providing an interactive input to edit it. It is based on a hidden input so it could be changed programmatically, or used just to display an image in a form.
Option | Type | Default value | Description |
---|---|---|---|
type | string |
hidden | |
image_class | string |
img-fluid |
$builder->add('cover_thumbnail', ImagePreviewType::class, [
'label' => false,
])