Change record status: 
Project: 
Introduced in branch: 
8.x
Description: 

The available languages list provided by _locale_get_predefined_list() can now be obtained through the language manager:

D7

<?php
 
require_once DRUPAL_ROOT . '/includes/iso.inc';
 
$languages = _locale_get_predefined_list();
?>

D8

<?php
 
use Drupal\Core\Language\LanguageManager;
 
$languages = LanguageManager::getStandardLanguageList();
?>

This obsoletes https://drupal.org/node/1276626.

Impacts: 
Module developers
Updates Done (doc team, etc.)
Online documentation: 
Not done
Theming guide: 
Not done
Module developer documentation: 
Not done
Examples project: 
Not done
Coder Review: 
Not done
Coder Upgrade: 
Not done
Other: 
Other updates done