This talk will present 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.
Will be described same best practices 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 will be addressed through the creation of an ad-hoc custom module and will be a useful opportunity to deepen the patterns required in the production of typical constructs required by Drupal 8 coding standards.
In particular will be discussed and shared the following:
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;
|Custom Forms and Configuration Forms.pdf||736.4 KB|