LanguageNegotiatorInterface::initializeType

public LanguageNegotiatorInterface::initializeType($type)

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.

File

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

Class

LanguageNegotiatorInterface
Common interface for language negotiation services.

Namespace

Drupal\language

Code

public function initializeType($type);
doc_Drupal
2016-10-29 09:22:55
Comments
Leave a Comment

Please login to continue.