private function getMode() { if ($this->isBackendScope()) { return 'BE'; } if ($this->isFrontendScope()) { return 'FE'; } return null; }