Drupal 8 Get Enabled Languages

[Solved] Drupal 8 Get Enabled Languages | Php Frameworks Drupal - Code Explorer | yomemimo.com
Question : drupal 8 get enabled languages

Answered by : natsu-happy

$langcodes = \Drupal::languageManager()->getLanguages();
$langcodesList = array_keys($langcodes);

Source : https://stefvanlooveren.me/blog/get-list-active-languages-drupal-8 | Last Update : Wed, 18 May 22

Answers related to drupal 8 get enabled languages

Code Explorer Popular Question For Php Frameworks Drupal