function ConfigurableLanguageManagerInterface::getNegotiatedLanguageMethod

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

Gets the negotiated language method ID.

Parameters

string $type: (optional) The language type; e.g., the interface or the content language.

Return value

string|null The negotiated language method ID.

1 method overrides ConfigurableLanguageManagerInterface::getNegotiatedLanguageMethod()
ConfigurableLanguageManager::getNegotiatedLanguageMethod in core/modules/language/src/ConfigurableLanguageManager.php
Gets the negotiated language method ID.

File

core/modules/language/src/ConfigurableLanguageManagerInterface.php, line 104

Class

ConfigurableLanguageManagerInterface
Common interface for language negotiation services.

Namespace

Drupal\language

Code

public function getNegotiatedLanguageMethod($type = LanguageInterface::TYPE_INTERFACE);

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