.. _Environment-isFrontend: ============================================== Environment::isFrontend() ============================================== \\nn\\t3::Environment()->isFrontend(); ---------------------------------------------- Prüfen, ob wir uns im Frontend-Context befinden .. code-block:: php \nn\t3::Environment()->isFrontend(); | ``@return bool`` Source Code ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .. code-block:: php public function isFrontend () { if ($this->_isFrontend !== null) { return $this->_isFrontend; } $request = $this->getRequest(); if ($request instanceof ServerRequestInterface) { return $this->_isFrontend = ApplicationType::fromRequest($request)->isFrontend(); } return $this->_isFrontend = false; }