Planet Drupal

Enable Drupal 8 debugging mode and error reporting for local development

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.

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.