Drupal, Technology

How to Programmatically Replace the Content in the Custom Block in Drupal 8?

Replacing the content in the custom block is often challenging. In Drupal 8, the best way to replace the content in the custom block programmatically is to use module_preprocess_block alter. We have created a custom block and now we want to replace the value of the placeholder programmatically. For eg. On http://example.com/, we have...

by Aayushi Garg
Tag: Drupal Development
15-Mar-2017

Drupal, Software development

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: Drupal Development
28-Feb-2017