LanguageSupportPageNames::removeLanguageSegment()
Given a page path, return an updated version that lacks the language segment
It extracts the language segment and uses that to later set the language
Usage
$string = $languageSupportPageNames->removeLanguageSegment(string $path);Arguments
| Name | Type(s) | Description |
|---|---|---|
$path | string |
Return value
string
LanguageSupportPageNames methods and properties
API reference based on ProcessWire core version 3.0.269