LanguagePrefix::alternateGetByLink
Get the prefix out of the way.
Note: this will fail for hamepage links like '/en_US/' because Director::get_homepage_link() is now not called from get_by_link() There is no way alternateGetByLink can influence the other parts of the link. So you'll always end up on the default locale homepage.
Signature
public function alternateGetByLink(string
$URLSegment,
int|null
$parentID )
Parameters
$URLSegment
— string$parentID
— object
Returns
- SiteTree