private function getWebspaceKey()
    {
        $request = $this->requestStack->getCurrentRequest();
        $webspaceKey = null;

        if ($request->get('_sulu')) {
            if ($request->get('_sulu')->getAttribute('webspace')) {
                $webspaceKey = $request->get('_sulu')->getAttribute('webspace')->getKey();
            }
        }

        return $webspaceKey;
    }
private function getWebspaceKey()
    {
        $request = $this->requestStack->getCurrentRequest();
        $webspaceKey = null;

        if ($request->get('_sulu')) {
            if ($request->get('_sulu')->getAttribute('webspace')) {
                $webspaceKey = $request->get('_sulu')->getAttribute('webspace')->getKey();
            }
        }

        return $webspaceKey;
    }
private function getWebspaceKey ( ) { $ request = $ this -> requestStack -> getCurrentRequest ( ) ; $ webspaceKey = null ; if ( $ request -> get ( '_sulu' ) ) { if ( $ request -> get ( '_sulu' ) -> getAttribute ( 'webspace' ) ) { $ webspaceKey = $ request -> get ( '_sulu' ) -> getAttribute ( 'webspace' ) -> getKey ( ) ; } } return $ webspaceKey ; }
Get webspace key.

@return string
Get webspace key .