public function LanguageNegotiationMethodBase::persist in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/language/src/LanguageNegotiationMethodBase.php \Drupal\language\LanguageNegotiationMethodBase::persist()
Notifies the plugin that the language code it returned has been accepted.
Parameters
\Drupal\Core\Language\LanguageInterface $language: The accepted language.
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 64 - Contains \Drupal\language\LanguageNegotiationMethodBase.
Class
- LanguageNegotiationMethodBase
- Base class for language negotiation methods.
Namespace
Drupal\languageCode
public function persist(LanguageInterface $language) {
// Default implementation persists nothing.
}