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

Breadcrumb

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

function LanguageNegotiationMethodBase::persist

Overrides LanguageNegotiationMethodInterface::persist

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

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.
}

API Navigation

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