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 persist(LanguageInterface $language) { // Default implementation persists nothing. }
Please login to continue.