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.

How to get current language in Drupal 8

Here is the quick code snippet of how we can get the current language code, current language name and all enabled languages in Drupal 8 for multilanguage sites.

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.