Generally, Image styles are used to set presets for image processing. By using the Drupal default image styles feature, we can crop, desaturate, resize, rotate, and scale the images. We can also add various effects before an image is displayed on your Drupal site. When an image is displayed with a style, a new image […]
Sometimes you need to have a separate theme based on the user group or some scenario. At that time you need to switch your currently active theme to another theme. UseCase For example consider this scenario, when the user wants to see the Drupal site in the lighter version means you have to switch your
From my previous post, you can enable the twig debug function in your Drupal site setup, but you should know about the renderable associative array structure. Then only you able to get the value, kint() function would be the best way to get the data in module and template file. When we use kint function: Drupal
Hope you already have a Drupal setup on your machine, so when you extend your functionality you may need to work on module and theme part. So you may think it overrides the existing rendering process. So for that, you must know how to override or customize the existing theme of the particular part of Drupal Page.