function LanguageNegotiationMethodBase::persist
Same name in other branches
- 8.9.x core/modules/language/src/LanguageNegotiationMethodBase.php \Drupal\language\LanguageNegotiationMethodBase::persist()
- 10 core/modules/language/src/LanguageNegotiationMethodBase.php \Drupal\language\LanguageNegotiationMethodBase::persist()
- 11.x core/modules/language/src/LanguageNegotiationMethodBase.php \Drupal\language\LanguageNegotiationMethodBase::persist()
Overrides LanguageNegotiationMethodInterface::persist
1 method overrides LanguageNegotiationMethodBase::persist()
- LanguageNegotiationSession::persist in core/
modules/ language/ src/ Plugin/ LanguageNegotiation/ LanguageNegotiationSession.php - Notifies the plugin that the language code it returned has been accepted.
File
-
core/
modules/ language/ src/ LanguageNegotiationMethodBase.php, line 59
Class
- LanguageNegotiationMethodBase
- Base class for language negotiation methods.
Namespace
Drupal\languageCode
public function persist(LanguageInterface $language) {
// Default implementation persists nothing.
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.