Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. LanguageNegotiationMethodInterface.php

function 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);

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal