function LanguageNegotiatorInterface::initializeType

Same name in other branches
  1. 9 core/modules/language/src/LanguageNegotiatorInterface.php \Drupal\language\LanguageNegotiatorInterface::initializeType()
  2. 10 core/modules/language/src/LanguageNegotiatorInterface.php \Drupal\language\LanguageNegotiatorInterface::initializeType()
  3. 11.x core/modules/language/src/LanguageNegotiatorInterface.php \Drupal\language\LanguageNegotiatorInterface::initializeType()

Initializes the specified language type.

Parameters

string $type: The language type to be initialized.

Return value

\Drupal\Core\Language\LanguageInterface[] Returns an array containing a single language keyed by the language negotiation method ID used to determine the language of the specified type. If negotiation is not possible the default language is returned.

1 method overrides LanguageNegotiatorInterface::initializeType()
LanguageNegotiator::initializeType in core/modules/language/src/LanguageNegotiator.php
Initializes the specified language type.

File

core/modules/language/src/LanguageNegotiatorInterface.php, line 130

Class

LanguageNegotiatorInterface
Common interface for language negotiation services.

Namespace

Drupal\language

Code

public function initializeType($type);

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