Drupal 8 module development #2 – adding basic routing

lirantal

Liran is 31 years old and married to his beloved soul-mate Tal. As an avid supporter of the open source community, he plays the role of leading developer for some projects and contributing code to many others. Some of his geek activities include programming, playing his guitar and even running The Hacker’s Choice BBS back in the pre-Internet days of ’95. Liran is passionate about creating software products, combining his technical skills with an exquisite entrepreneurial spirit and business orientation to build successful ventures. Liran currently works at HP Software, leading the development team on a Drupal based collaboration platform in HP's Live Network R&D group. At HPLN, Liran plays a key role in system architecture design, shaping the technology strategy from planning and development to deployment and maintenance in HP's IaaS cloud. Acting as the technological focal point, he loves mentoring team mates, drive for better code methodology and seek out innovative solutions to support business strategies.

You may also like...

6 Responses

  1. Anonymous says:

    Sadly, none of this appears to be in the hook_menu() API documentation yet:

    https://api.drupal.org/api/drupal/core!modules!system!system.api.php/function/hook_menu/8

     

  2. Anonymous says:

    is it just me, or looking at this example it looks like Drupal became just an overhead for Symphony? Why do you need to define route in two places?

    • lirantal says:

      Taken from https://groups.drupal.org/node/313408 :

      “All form and page callbacks are being converted to the new routing system. The procedural versions of these callbacks will be removed from the core codebase, and before Drupal 8.0 is released, hook_menu() will no longer work to register callbacks.”

      So things are still going to change…

  3. mtift says:

    Thanks for the posts. Just wanted to point out that “pattern” is now “path” in *.routing.yml files: https://drupal.org/node/2089727

  1. May 10, 2014

    […] the previous article we briefly introduced the routing system, with adding a basic route. When that route is triggered […]

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>