How to know if a site is Multilingual programmatically? In Drupal 7 I used drupal_multilingual() to know if a site is multilingual, but this function was renamed in Drupal 8 to language_multilingual(), the problem is that it seems that language_multilingual() is not longer available.

I found that LanguageManager::isMultilingual should return:


  bool TRUE if more than one language is added, FALSE otherwise.


But when you go to see the code always FALSE is returned.

public function isMultilingual() {
  return FALSE;
}


This is an error or I missing something?
Searching I found in drupalcontrib a reference to the language_multilingual() function that show the following code:

function language_multilingual() {
  return Drupal::languageManager()-&gt;isMultilingual();
}


So I used Drupal::languageManager()-&gt;isMultilingual(); and it seems that returns the good value.

I'll do tomorrow a test in a not multilingual site to confirm.