function LanguageNegotiationMethodInterface::persist

Same name in other branches
  1. 8.9.x core/modules/language/src/LanguageNegotiationMethodInterface.php \Drupal\language\LanguageNegotiationMethodInterface::persist()
  2. 10 core/modules/language/src/LanguageNegotiationMethodInterface.php \Drupal\language\LanguageNegotiationMethodInterface::persist()
  3. 11.x core/modules/language/src/LanguageNegotiationMethodInterface.php \Drupal\language\LanguageNegotiationMethodInterface::persist()

Notifies the plugin that the language code it returned has been accepted.

Parameters

\Drupal\Core\Language\LanguageInterface $language: The accepted language.

1 method overrides LanguageNegotiationMethodInterface::persist()
LanguageNegotiationMethodBase::persist in core/modules/language/src/LanguageNegotiationMethodBase.php
Notifies the plugin that the language code it returned has been accepted.

File

core/modules/language/src/LanguageNegotiationMethodInterface.php, line 65

Class

LanguageNegotiationMethodInterface
Interface for language negotiation classes.

Namespace

Drupal\language

Code

public function persist(LanguageInterface $language);

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.