Forms and Validation in Symfony2

ssibal

Throughout my early career I was working with Symfony2, but now am working with Drupal 7 at BRAINSUM and eagerly waiting for Drupal 8's first stable release!

In this session I would like to present the Symfony2 form component and validation and their relationship to the upcoming Drupal 8 as well. Also pointing out the differencies to Drupal 7.
Through example entity and code I would like cover the following topics:

  • building a form
  • rendering the form in a template (twig)
  • form theming
  • handling submissions
  • form validation
  • constraints
  • validation groups
  • group sequence
  • built-in field types
  • creating form classes
  • form without a class


 

Session Track

Symfony

Experience Level

Beginner

Drupal Version