InstallationModelLanguages::getSefString
Gets a unique language SEF string
This function checks other existing language with the same code, if they exist provides a unique SEF name. For instance: en-GB, en-US and en-AU will share the same SEF code by default: www.mywebsite.com/en/ To avoid this conflict, this function creates an specific SEF in case of existing conflict: For example: www.mywebsite.com/en-au/
Signature
public function getSefString(stdClass
$itemLanguage,
array
$siteLanguagesĀ )
Parameters
-
$itemLanguage
- Language Object
-
$siteLanguages
- All Language Objects
Returns
- string