Adding parameters to route in Drupal 8

To pass parameters to controller using URI is possible in Drupal 8. It makes URI to contain parameters that can be processed in the controller.Parameters are defined in the routing.yml with curly braces.Following is the example code to pass parameters to route in routing.yml file. hello_world.hello_route: path: ‘hello/{route}’ defaults: _controller: Drupal\hello_world\Controller\HelloController::hello_route _title: ‘This is title Continue Reading

Creating a simple Hello module in Drupal 8

Drupal 8 is has many advanced CMS features with using the most advanced features of PHP language and integrates number of third party libraries.  Drupal 8 makes use of OOP concepts heavily while using PHP classes, objects, namespaces and many design patterns using these.  Symfony is a PHP framework that Drupal borrows from in order Continue Reading