ShopRestrictionCheckboxType

This class displays customized checkbox which is used for shop restriction functionality.

Type options

Option Type Default value Description

Code example

$builder->add($form->getName() . $suffix, ShopRestrictionCheckboxType::class, [
    'attr' => [
        'is_allowed_to_display' => $isAllowedToDisplay,
        'data-shop-restriction-target' => $form->getName(),
    ],
]);