/** * returns current active language id * @return mixed */ function execute() { $existLanguage = $this->fetchExistLanguage(); if ($existLanguage !== $this->context->getLang()) { $this->context->setLang($existLanguage); $theme = $this->context->getTheme(); if (!empty($theme)) { $this->session->setValue('CURRENT_THEME', $theme); } } return $this->context->getLang(); }