Drupal 8 получите включенные языки
$langcodes = \Drupal::languageManager()->getLanguages();
$langcodesList = array_keys($langcodes);
natsu happy
$langcodes = \Drupal::languageManager()->getLanguages();
$langcodesList = array_keys($langcodes);