Environment::isFrontend() 

\nn\t3::Environment()->isFrontend(); 

Check whether we are in the frontend context

\nn\t3::Environment()->isFrontend();
Copied!

| @return bool

Source Code 

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;
}
Copied!