Planet Drupal

Enable debug mode and error reporting for local development in Drupal 8

If you are just starting with Drupal 8 then one of the most important things you should know is to enable the debug mode and error reporting on Drupal 8. This is really important for backend as well as frontend developer to the full error on your screen while you are working because you might not know what is the exact issue with the site with just a generic error statement.

Progressive Web App (PWA) integration with Drupal

A Progressive Web App (PWA) is a web app that uses modern web capabilities to deliver an app-like experience to users by combining features offered by most modern browsers with the benefits of mobile experience. Integration of PWA with Drupal makes Drupal inherit the latest web technologies and harness devices capabilities.

How to create AMP pages on Drupal to rank better

Accelerated Mobile Pages (AMP) is an open source project initiated by Google to provide better and fast experience to user on mobile. Biggest reason you should be integrating AMP pages with Drupal websites is to rank better on google.

Translating views strings programmatically in Drupal 8

In Drupal 8 views strings like sort options, header, footer or any other string can only be translated through configuration translation but here is a code snippet to add translations for a view programmatically with config override.

Right way to call theme functions in Drupal

Drupal core and contrib modules defines theme functions. These theme functions can be defined by themes as well. hook_theme() implementations is where all the information exists.

Role Delay Module - Automatically assign role to user

There are situations where drupal you want to assign a particular role to a user after he/she has been registered for a period of time. This functionality might be needed for situations where you want a user to get permission to perform a particular task on your site.