public function hasCsrfProtectionTokens()
    {
        $sessionDataContainer = $this->objectManager->get(SessionDataContainer::class);
        $csrfProtectionTokens = $sessionDataContainer->getCsrfProtectionTokens();
        return count($csrfProtectionTokens) > 0;
    }
public function hasCsrfProtectionTokens()
    {
        $sessionDataContainer = $this->objectManager->get(SessionDataContainer::class);
        $csrfProtectionTokens = $sessionDataContainer->getCsrfProtectionTokens();
        return count($csrfProtectionTokens) > 0;
    }
public function hasCsrfProtectionTokens ( ) { $ sessionDataContainer = $ this -> objectManager -> get ( SessionDataContainer :: class ) ; $ csrfProtectionTokens = $ sessionDataContainer -> getCsrfProtectionTokens ( ) ; return count ( $ csrfProtectionTokens ) > 0 ; }
Returns true if the context has CSRF protection tokens.

@return boolean true, if the token is valid. false otherwise.
Returns true if the context has CSRF protection tokens .