$formMapper ->add('name', 'text') ->add('email', 'email');
$formMapper->add('category', 'entity', [ 'class' => 'AppBundle\Entity\Category', 'choice_label' => 'name', ]);
$formMapper->add('is_active', 'checkbox', [ 'required' => false, ]);Overall, the FormMapper class is a powerful tool for customizing forms in the admin area of a web application. Its intuitive syntax and powerful methods make it a popular choice for developers working with the SonataAdminBundle.