public function ConfigurableLanguageManager::isMultilingual in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/language/src/ConfigurableLanguageManager.php \Drupal\language\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
2 calls to ConfigurableLanguageManager::isMultilingual()
- ConfigurableLanguageManager::getCurrentLanguage in core/
modules/ language/ src/ ConfigurableLanguageManager.php - Returns the current language for the given type.
- ConfigurableLanguageManager::getFallbackCandidates in core/
modules/ language/ src/ ConfigurableLanguageManager.php - Returns the language fallback candidates for a given context.
File
- core/
modules/ language/ src/ ConfigurableLanguageManager.php, line 148 - Contains \Drupal\language\ConfigurableLanguageManager.
Class
- ConfigurableLanguageManager
- Overrides default LanguageManager to provide configured languages.
Namespace
Drupal\languageCode
public function isMultilingual() {
return count($this
->getLanguages(LanguageInterface::STATE_CONFIGURABLE)) > 1;
}