MAKERS & BUILDERS - The Form API Workflow

Поділитися
Вставка
  • Опубліковано 19 вер 2024
  • The Form API is a Drupal powerful system to create all kind of forms. However, given its complexity, it may be hard to completely understand it and is easy to end up fighting against it when building complex forms.
    The existent documentation is good but there's a lack of a general but detailed picture of the whole form request flow from the form building to the end submission, including all possible rebuilds due to validation errors, requests in a multi-step form or other form actions.
    This talk will explain all the phases of a form request flow, from the initial build, alterations, send to client, form rebuild (when and why), to cache mechanisms, handlers execution or how AJAX requests are handled.
    Attendees should have basic technical knowledge about involved mechanisms (HTTP requests, Render Arrays, PHP POO and form basics). The session will try to give a general knowledge about the complete life-cycle of a form request detailing its key aspects. After this session, you'll understand how the Form API and Drupal handle forms and you'll be more confident when you need to alter, extend or use forms in a complex or advanced fashion.
    Presentation: rsanzante.gith...

КОМЕНТАРІ • 7

  • @mts7274
    @mts7274 Рік тому

    This is the reason the Drupal community has completely walked away from the framework.

    • @BJ-bd5fc
      @BJ-bd5fc Рік тому

      Did you try out the Backdrop CMS, by chance?

    • @mts7274
      @mts7274 Рік тому

      @@BJ-bd5fc Heck no. Backdrop just doesn't have a big enough contrib module community to keep it sustainable in the long term.

    • @BJ-bd5fc
      @BJ-bd5fc Рік тому

      ​@@mts7274 - To be fair, supporting Drupal 8+ also isn't sustainable for any orgs that don't have really deep pockets.
      I wish Dries and Co. would've publicly said, "If your site is small, we recommend Backdrop," many years ago. Without that public endorsement, Drupal will likely shrink down to just being an Acquia product for their remaining clients by the end of the decade.

    • @mts7274
      @mts7274 Рік тому

      @@BJ-bd5fc Drupal 7 support will outlast Drupal 9+, AND may end up getting supported all the way through 2024. What a clown show! Drupal 10 would be the best place to start new from the ground up, but unfortunately many contrib modules will still not be ready for 10.

    • @sanzante
      @sanzante Рік тому +1

      The Community is here, happy and thriving. Some decided to left, and that's ok, but please don't speak on behalf of the Community.