Notice: You are browsing the documentation for PrestaShop 9, which is currently in development.
You might want to read the documentation for the current version, PrestaShop 8. Read the current version of this page
A form button with material icon.
Option | Type | Default value | Description |
---|---|---|---|
icon | string |
The icon to display | |
type | string |
The button type (link, …) |
$builder->add('catalog', IconButtonType::class, [
'label' => $this->trans('Go to catalog', 'Admin.Catalog.Feature'),
'type' => 'link',
'icon' => 'arrow_back_ios',
'attr' => [
'class' => 'btn-outline-secondary border-white go-to-catalog-button',
'href' => $this->router->generate('admin_products_v2_index', ['offset' => 'last', 'limit' => 'last']),
],
])