snippet

Drupal 8: Get The Current Language

To get the currently selected language on a Drupal 8 site you need to run the following.