You are here

public function LanguageNegotiatorInterface::getPrimaryNegotiationMethod in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/language/src/LanguageNegotiatorInterface.php \Drupal\language\LanguageNegotiatorInterface::getPrimaryNegotiationMethod()

Returns the ID of the language type's primary language negotiation method.

Parameters

$type: The language type.

Return value

string The identifier of the primary language negotiation method for the given language type, or the default method if none exists.

1 method overrides LanguageNegotiatorInterface::getPrimaryNegotiationMethod()
LanguageNegotiator::getPrimaryNegotiationMethod in core/modules/language/src/LanguageNegotiator.php
Returns the ID of the language type's primary language negotiation method.

File

core/modules/language/src/LanguageNegotiatorInterface.php, line 170
Contains \Drupal\language\LanguageNegotiatorInterface.

Class

LanguageNegotiatorInterface
Common interface for language negotiation services.

Namespace

Drupal\language

Code

public function getPrimaryNegotiationMethod($type);