You are here

public function LanguageNegotiatorInterface::getNegotiationMethodInstance in Zircon Profile 8

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

Returns an instance of the specified language negotiation method.

Parameters

string $method_id: The method identifier.

Return value

\Drupal\language\LanguageNegotiationMethodInterface

1 method overrides LanguageNegotiatorInterface::getNegotiationMethodInstance()
LanguageNegotiator::getNegotiationMethodInstance in core/modules/language/src/LanguageNegotiator.php
Returns an instance of the specified language negotiation method.

File

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

Class

LanguageNegotiatorInterface
Common interface for language negotiation services.

Namespace

Drupal\language

Code

public function getNegotiationMethodInstance($method_id);