class RolesType extends AbstractType (View source)

Roles selector form field type.

Properties

protected Collection|null $roles

Methods

__construct(EntityManager $entityManager, Collection $roles = null)

No description

configureOptions(OptionsResolver $resolver)

{@inheritdoc}

getParent()

{@inheritdoc}

getBlockPrefix()

{@inheritdoc}

Details

__construct(EntityManager $entityManager, Collection $roles = null)

Parameters

EntityManager $entityManager
Collection $roles Existing roles name array (used to display only available roles to parent entity)

configureOptions(OptionsResolver $resolver)

{@inheritdoc}

Parameters

OptionsResolver $resolver

getParent()

{@inheritdoc}

getBlockPrefix()

{@inheritdoc}