Classes/Helper/InputHelper.php
public static function getRequestToken(
        $serviceName = 'security.csrf.token_manager',
        $tokenName = 'contao.csrf_token_name'
    ) {
        $c      = \System::getContainer();
        $param  = $c->getParameter($tokenName);
        return $c->get($serviceName)->getToken($param)->getValue();
    }
public static function getRequestToken(
        $serviceName = 'security.csrf.token_manager',
        $tokenName = 'contao.csrf_token_name'
    ) {
        $c      = \System::getContainer();
        $param  = $c->getParameter($tokenName);
        return $c->get($serviceName)->getToken($param)->getValue();
    }
Gibt den RequestToken zurück.
@param string $serviceName
@param string $tokenName
@return mixed