function getActiveMenu() { $mainFunction = $this->getMainFunction(); if (in_array($mainFunction, ['editForm', 'deleteForm', 'saveForm'])) { $activeMenu = $this->request->getTrim('action'); $activeMenu = $activeMenu ?: $this->request->getSubRequest($this->pi1->prefixId)->getTrim('action'); // saveForm } else { $activeMenu = $mainFunction; } return $activeMenu; }