public function getContextHash()
    {
        return ($this->environmentService->isEnvironmentInFrontendMode())
            ? 'fe-' . Core::get()->getPageController()->id
            : 'be-' . StringService::get()->sanitizeString(GeneralUtility::_GET('M'));
    }
public function getContextHash()
    {
        return ($this->environmentService->isEnvironmentInFrontendMode())
            ? 'fe-' . Core::get()->getPageController()->id
            : 'be-' . StringService::get()->sanitizeString(GeneralUtility::_GET('M'));
    }
public function getContextHash ( ) { return ( $ this -> environmentService -> isEnvironmentInFrontendMode ( ) ) ? 'fe-' . Core :: get ( ) -> getPageController ( ) -> id : 'be-' . StringService :: get ( ) -> sanitizeString ( GeneralUtility :: _GET ( 'M' ) ) ; }
Returns a unique hash for the context of the current request, depending
on whether the request comes from frontend or backend.

@return string
Returns a unique hash for the context of the current request depending on whether the request comes from frontend or backend .