You are here

public function LanguageNegotiatorInterface::isNegotiationMethodEnabled in Zircon Profile 8

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

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

Parameters

$method_id: The language negotiation method ID.

$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 185
Contains \Drupal\language\LanguageNegotiatorInterface.

Class

LanguageNegotiatorInterface
Common interface for language negotiation services.

Namespace

Drupal\language

Code

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