src/Koldy/Security/Csrf.php
public static function getHtmlInputHidden(): string
    {
        static::init();

        if (($parameterName = static::getParameterName()) !== null) {
            $csrfValue = static::getStoredToken()->getToken();
            return sprintf('<input type="hidden" name="%s" value="%s"/>', $parameterName, $csrfValue);
        } else {
            return '';
        }
    }
public static function getHtmlInputHidden(): string
    {
        static::init();

        if (($parameterName = static::getParameterName()) !== null) {
            $csrfValue = static::getStoredToken()->getToken();
            return sprintf('<input type="hidden" name="%s" value="%s"/>', $parameterName, $csrfValue);
        } else {
            return '';
        }
    }
public static function getHtmlInputHidden ( ) : string { static :: init ( ) ; if ( ( $ parameterName = static :: getParameterName ( ) ) !== null ) { $ csrfValue = static :: getStoredToken ( ) -> getToken ( ) ; return sprintf ( '<input type="hidden" name="%s" value="%s"/>' , $ parameterName , $ csrfValue ) ; } else { return '' ; } }
Get prepared HTML input that can be used directly in forms

@return string
@throws ConfigException
@throws Exception
@throws \Koldy\Exception
Get prepared HTML input that can be used directly in forms