- Drupal 8
Custom Forms and Configuration Forms in Drupal 8
This talk was held by me during the Drupal Developer Days held in Milan (Italy) in June 2016.
It presented a course and a practical application of building and configuring a Custom Form and its Configuration Form according to new Drupal 8 Form Object Oriented APIs.
Same best practices were analyzed applied to the experience so far conducted in the context of an advanced Drupal 8 project run in the team of Wellnet Srl (Milan).
The talk addressed the creation of an ad-hoc custom module used to deepen the patterns required in the production of typical constructs required by Drupal 8 coding standards.
In particular the following topics have been discussed and shared:
- the definition of form route, form link menu and custom form controller;
- the default configuration management service container with the configFactory and the override throughout a specific configuration form;
- the construction of the form through the possible form and render elements;
- the consume of an external web service using service http_client (via dependency injection) and the reaction with Ajax Form API interaction;
Here attached the pdf version of the presented slides, the link to the original DDD 2016 Talk page, the custom module code on Github, and the Youtube Video of the talk itself.