ConfigurableLanguageManager::isMultilingual

public ConfigurableLanguageManager::isMultilingual()

Returns whether or not the site has more than one language added.

Return value

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

Overrides LanguageManager::isMultilingual

File

core/modules/language/src/ConfigurableLanguageManager.php, line 143

Class

ConfigurableLanguageManager
Overrides default LanguageManager to provide configured languages.

Namespace

Drupal\language

Code

public function isMultilingual() {
  return count($this->getLanguages(LanguageInterface::STATE_CONFIGURABLE)) > 1;
}
doc_Drupal
2016-10-29 08:55:17
Comments
Leave a Comment

Please login to continue.