Content Management, Drupal

Overview of Twig Extentions in Drupal 8

Drupal 8 introduces a great templating system "Twig" which is originating from Symfony, a PHP framework. This has brought about a big change in the Drupal community. Unlike Drupal 7, developers can't use PHP functions directly now on. Twig is a template framework and is a direct replacement for PHP template. Twig extension...

by Ashish Pandey
Tag: Drupal8
28-Feb-2017

Drupal, Technology

How to Use Hook_init in Drupal 8?

In Drupal 8, most of the Hooks such as hook_init, hook_boot are removed from the Drupal 8. These Hooks are replaced with Event Subscriber in Drupal 8. If you are performing few actions such as redirect, add CSS, add JS or any other modification on request, it can be done by registering Event Subscriber. As we know Drupal 8 introduces...

by Jeet Lal
Tag: Drupal8
10-Jan-2017