Learn about how the output from a custom controller gets incorporated into the final pageīy the end of this tutorial, you should be able to describe the process that Drupal goes through to convert an incoming request for a URL into an HTML response displayed by the browser. See how the Symfony HTTPKernel helps orchestrate this process.Walk through the process that Drupal uses to convert an incoming request into HTML that a browser can read.Knowing a bit more about how Drupal handles the request-to-response workflow will help you better understand how to use routes and controllers to create your own custom pages or deal with authentication, access checking, and error handling in a Drupal module. Deliver that response to the user's browser.Kernel events are dispatched to coordinate the following tasks: Drupal uses Symfony's HTTPKernel component. We'll continue to fill this collection out as we develop more tutorials for these critical components.Įvery web framework, including Drupal, has basically the same job: provide a way for developers to map URLs to the code that builds the corresponding pages. You might also want to explore our guide for Drupal module developers: Develop Drupal Sites. We recommend working through tutorials in this collection on an as-needed basis. Working with services, dependency injection, and the service container.Using the Render API to present content for display.Altering and extending Drupal without hacking core through plugins, hooks, and events. Note: If you're using Drupal 7, see Module Development for Drupal 7 or search using the Drupal 7 filter. The various APIs and subsystems outlined below are critical systems and in most cases you'll need to know how some or all of these work in order to make use of Drupal's higher level developer APIs. This series is a collection of all of our Drupal Module Development tutorials - essential information for anyone developing Drupal modules or working on Drupal core.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |