public function HiddenLanguageManager::isPathException in Hidden Language 2.x
Check if url exists in the exception list.
Parameters
string $url: Url to be tested.
Return value
bool True if Url is in exception list and False if not.
1 call to HiddenLanguageManager::isPathException()
- HiddenLanguageManager::isUrlException in src/
HiddenLanguageManager.php - Verify if $url is an exception on the hidden language config.
File
- src/
HiddenLanguageManager.php, line 97
Class
- HiddenLanguageManager
- Class HiddenLanguageManager.
Namespace
Drupal\hidden_languageCode
public function isPathException($url) {
if (!is_array($this
->getPathsException())) {
return FALSE;
}
return array_key_exists($url, array_flip($this
->getPathsException()));
}