You are here

public function LanguageNegotiationMethodInterface::persist in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 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 63
Contains \Drupal\language\LanguageNegotiationMethodInterface.

Class

LanguageNegotiationMethodInterface
Interface for language negotiation classes.

Namespace

Drupal\language

Code

public function persist(LanguageInterface $language);