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; }
Please login to continue.