You are here

public function LanguageNegotiatorInterface::isNegotiationMethodEnabled in Drupal 9

Same name and namespace in other branches
  1. 8 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);