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 persist(LanguageInterface $language) {
  // Default implementation persists nothing.
}
doc_Drupal
2016-10-29 09:22:46
Comments
Leave a Comment

Please login to continue.