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

ProfileChoiceType

Class ProfileChoiceType is choice type for selecting employee’s profile.

  • Namespace: PrestaShopBundle\Form\Admin\Type\Common\Team
  • Reference: ProfileChoiceType

Type options

Option Type Default value Description

Code example

->add(
    (new Filter('profile', ProfileChoiceType::class))
        ->setTypeOptions([
            'required' => false,
        ])
        ->setAssociatedColumn('profile')
)

Preview example

ProfileChoiceType rendered in form example