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 class displays customized checkbox which is used for shop restriction functionality.
Option | Type | Default value | Description |
---|
$builder->add($form->getName() . $suffix, ShopRestrictionCheckboxType::class, [
'attr' => [
'is_allowed_to_display' => $isAllowedToDisplay,
'data-shop-restriction-target' => $form->getName(),
],
]);