public getItemidURLSuffix ( ) : string | ||
return | string | The &Itemid=123 URL suffix, or an empty string if Itemid is not applicable |
public function getItemidURLSuffix()
{
if ($this->container->platform->isFrontend() && $this->input->getCmd('Itemid', 0) != 0) {
return '&Itemid=' . $this->input->getInt('Itemid', 0);
} else {
return '';
}
}