Type is used to add any content at any position of the form, rather than the actual field.
Option | Type | Default value | Description |
---|
$builder->add('seo_preview', CustomContentType::class, [
'label' => $this->trans('SEO preview', 'Admin.Global'),
'help' => $this->trans('Here is a preview of how your page will appear in search engine results.', 'Admin.Global'),
'template' => '@PrestaShop/Admin/Improve/Design/Cms/Blocks/seo_preview.html.twig',
'data' => [
'cms_url' => $options['cms_preview_url'],
],
])