private function getCsrfToken()
    {
        if ($this->csrfTokenManager === null) {
            return '';
        }

        return $this->csrfTokenManager->getToken($this->csrfTokenIntention)->getValue();
    }
private function getCsrfToken()
    {
        if ($this->csrfTokenManager === null) {
            return '';
        }

        return $this->csrfTokenManager->getToken($this->csrfTokenIntention)->getValue();
    }
private function getCsrfToken ( ) { if ( $ this -> csrfTokenManager === null ) { return '' ; } return $ this -> csrfTokenManager -> getToken ( $ this -> csrfTokenIntention ) -> getValue ( ) ; }
Returns the csrf token for REST. The token is generated if it doesn't exist.

@return string The csrf token, or an empty string if csrf check is disabled.
Returns the csrf token for REST . The token is generated if it doesn t exist .