public LanguageNegotiatorInterface::isNegotiationMethodEnabled($method_id, $type = NULL)
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.
File
- core/modules/language/src/LanguageNegotiatorInterface.php, line 180
Class
- LanguageNegotiatorInterface
- Common interface for language negotiation services.
Namespace
Drupal\language
Code
public function isNegotiationMethodEnabled($method_id, $type = NULL);
Please login to continue.