LanguageNegotiationMethodInterface::setLanguageManager

public LanguageNegotiationMethodInterface::setLanguageManager(ConfigurableLanguageManagerInterface $language_manager) Injects the language manager. Parameters \Drupal\language\ConfigurableLanguageManagerInterface $language_manager: The language manager to be used to retrieve the language list and the already negotiated languages. File core/modules/language/src/LanguageNegotiationMethodInterface.php, line 22 Class LanguageNegotiationMethodInterface Interface for language negotiation classe

LanguageNegotiationMethodInterface::setCurrentUser

public LanguageNegotiationMethodInterface::setCurrentUser(AccountInterface $current_user) Injects the current user. Parameters \Drupal\Core\Session\AccountInterface $current_user: The current active user. File core/modules/language/src/LanguageNegotiationMethodInterface.php, line 38 Class LanguageNegotiationMethodInterface Interface for language negotiation classes. Namespace Drupal\language Code public function setCurrentUser(AccountInterface $current_user);

LanguageNegotiationMethodInterface::setConfig

public LanguageNegotiationMethodInterface::setConfig(ConfigFactoryInterface $config) Injects the configuration factory. Parameters \Drupal\Core\Config\ConfigFactoryInterface $config_factory: The configuration factory. File core/modules/language/src/LanguageNegotiationMethodInterface.php, line 30 Class LanguageNegotiationMethodInterface Interface for language negotiation classes. Namespace Drupal\language Code public function setConfig(ConfigFactoryInterface $config);

LanguageNegotiationMethodInterface::persist

public LanguageNegotiationMethodInterface::persist(LanguageInterface $language) Notifies the plugin that the language code it returned has been accepted. Parameters \Drupal\Core\Language\LanguageInterface $language: The accepted language. File core/modules/language/src/LanguageNegotiationMethodInterface.php, line 58 Class LanguageNegotiationMethodInterface Interface for language negotiation classes. Namespace Drupal\language Code public function persist(LanguageInterface $language);

LanguageNegotiationMethodInterface::getLangcode

public LanguageNegotiationMethodInterface::getLangcode(Request $request = NULL) Performs language negotiation. Parameters \Symfony\Component\HttpFoundation\Request $request: (optional) The current request. Defaults to NULL if it has not been initialized yet. Return value string A valid language code or FALSE if the negotiation was unsuccessful. File core/modules/language/src/LanguageNegotiationMethodInterface.php, line 50 Class LanguageNegotiationMethodInterface Interface for language ne

LanguageNegotiationMethodInterface

Interface for language negotiation classes. Hierarchy interface \Drupal\language\LanguageNegotiationMethodInterface File core/modules/language/src/LanguageNegotiationMethodInterface.php, line 13 Namespace Drupal\language Members Name Modifiers Type Description LanguageNegotiationMethodInterface::getLangcode public function Performs language negotiation. LanguageNegotiationMethodInterface::persist public function Notifies the plugin that the language code it retur

LanguageNegotiationMethodBase::setLanguageManager

public LanguageNegotiationMethodBase::setLanguageManager(ConfigurableLanguageManagerInterface $language_manager) Injects the language manager. Parameters \Drupal\language\ConfigurableLanguageManagerInterface $language_manager: The language manager to be used to retrieve the language list and the already negotiated languages. Overrides LanguageNegotiationMethodInterface::setLanguageManager File core/modules/language/src/LanguageNegotiationMethodBase.php, line 38 Class LanguageNegotiationMet

LanguageNegotiationMethodBase::setCurrentUser

public LanguageNegotiationMethodBase::setCurrentUser(AccountInterface $current_user) Injects the current user. Parameters \Drupal\Core\Session\AccountInterface $current_user: The current active user. Overrides LanguageNegotiationMethodInterface::setCurrentUser File core/modules/language/src/LanguageNegotiationMethodBase.php, line 52 Class LanguageNegotiationMethodBase Base class for language negotiation methods. Namespace Drupal\language Code public function setCurrentUser(AccountInte

LanguageNegotiationMethodBase::setConfig

public LanguageNegotiationMethodBase::setConfig(ConfigFactoryInterface $config) Injects the configuration factory. Parameters \Drupal\Core\Config\ConfigFactoryInterface $config_factory: The configuration factory. Overrides LanguageNegotiationMethodInterface::setConfig File core/modules/language/src/LanguageNegotiationMethodBase.php, line 45 Class LanguageNegotiationMethodBase Base class for language negotiation methods. Namespace Drupal\language Code public function setConfig(ConfigFa

LanguageNegotiationMethodBase::persist

public LanguageNegotiationMethodBase::persist(LanguageInterface $language) Notifies the plugin that the language code it returned has been accepted. Parameters \Drupal\Core\Language\LanguageInterface $language: The accepted language. Overrides LanguageNegotiationMethodInterface::persist File core/modules/language/src/LanguageNegotiationMethodBase.php, line 59 Class LanguageNegotiationMethodBase Base class for language negotiation methods. Namespace Drupal\language Code public function