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

Learn how to update to the latest version.

ZoneChoiceType

Class is responsible for providing configurable zone choices with – symbol in front of array

  • Namespace: PrestaShopBundle\Form\Admin\Type
  • Reference: ZoneChoiceType

Type options

Option Type Default value Description

Code example

return (new FilterCollection())    
    ->add(
        (new Filter('id_zone', ZoneChoiceType::class))
        ->setTypeOptions([
            'required' => false,
        ])
        ->setAssociatedColumn('zone_name')
    )

Preview example

ZoneChoiceType rendered in form using textarea