PrestaShop Developer Conference
PrestaShop Developer Conference
Paris, France - November 6, 2024
Let's talk code, commerce and open source.

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