function ConfigurableLanguageManager::isMultilingual

Same name in other branches
  1. 9 core/modules/language/src/ConfigurableLanguageManager.php \Drupal\language\ConfigurableLanguageManager::isMultilingual()
  2. 8.9.x core/modules/language/src/ConfigurableLanguageManager.php \Drupal\language\ConfigurableLanguageManager::isMultilingual()
  3. 11.x core/modules/language/src/ConfigurableLanguageManager.php \Drupal\language\ConfigurableLanguageManager::isMultilingual()

Overrides LanguageManager::isMultilingual

2 calls to ConfigurableLanguageManager::isMultilingual()
ConfigurableLanguageManager::getCurrentLanguage in core/modules/language/src/ConfigurableLanguageManager.php
ConfigurableLanguageManager::getFallbackCandidates in core/modules/language/src/ConfigurableLanguageManager.php

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;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.