Aayushi Garg

Content Management, Drupal

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...

15-Mar-2017