function LanguageNegotiatorInterface::isNegotiationMethodEnabled

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

Checks whether a language negotiation method is enabled for a language type.

Parameters

string $method_id: The language negotiation method ID.

string $type: (optional) The language type. If none is passed, all the configurable language types will be inspected.

Return value

bool TRUE if the method is enabled for at least one of the given language types, or FALSE otherwise.

1 method overrides LanguageNegotiatorInterface::isNegotiationMethodEnabled()
LanguageNegotiator::isNegotiationMethodEnabled in core/modules/language/src/LanguageNegotiator.php
Checks whether a language negotiation method is enabled for a language type.

File

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

Class

LanguageNegotiatorInterface
Common interface for language negotiation services.

Namespace

Drupal\language

Code

public function isNegotiationMethodEnabled($method_id, $type = NULL);

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