Routing system in Drupal 8


Rakesh Kumar

This routing system replaces the routing parts of hook_menu() in Drupal 7. The parts of hook_menu() that were for creating menu entries, tabs, actions and contextual links are taken over by other subsystems.

Overview

route is a path which is defined for Drupal to return some sort of content on. For example, the default front page, ‘/node’ is a route. When Drupal receives a request, it tries to match the requested path to a route it knows about. If the route is found, then the route’s definition is used to return content. Otherwise, Drupal returns a 404.

Routes and controllers

Drupal’s routing system works with the Symfony HTTP Kernel (that you need to know very little about to do basic route operations). This is how the components relate to each other:

Drupal8Routing

The routing system is responsible for matching paths to controllers, and you define those relations in routes. You…

View original post 18 more words

Advertisements
About

myself pramodh kumar yet another php developer from India and have worked on oops,procedural,yii framework,codeigniter,wordpress,joomla,api and more.

Tagged with: , , ,
Posted in php

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Follow php tutorial on WordPress.com
categories
Calendar
May 2014
M T W T F S S
« Apr   Jun »
 1234
567891011
12131415161718
19202122232425
262728293031  
Follow me on Twitter
Blog Stats
  • 75,924 hits
%d bloggers like this: