LanguageSupportPageNames::getPagePathLanguage()
Return the Language that the given path is in or null if can't determine
Usage
// basic usage
$language = $languageSupportPageNames->getPagePathLanguage(string $path);
// usage with all arguments
$language = $languageSupportPageNames->getPagePathLanguage(string $path, $page = null);Arguments
| Name | Type(s) | Description |
|---|---|---|
$path | string | Page path without without installation subdir or URL segments or page numbers |
$page (optional) | Page null | If you already know the $page that resulted from the path, provide it here for faster performance |
Return value
Language null
LanguageSupportPageNames methods and properties
API reference based on ProcessWire core version 3.0.269