public static function csrfMetaTags(RequestApplicationInterface $app)
    {
        $encoding = $app->charset;
        if ($app->reqHelper->enableCsrfValidation) {
            return static::tag('meta', '', ['name' => 'csrf-param', 'content' => $app->reqHelper->csrfParam], $encoding) . "\n    "
                . static::tag('meta', '', ['name' => 'csrf-token', 'content' => $app->reqHelper->getCsrfToken()], $encoding) . "\n";
        }

        return '';
    }
public static function csrfMetaTags(RequestApplicationInterface $app)
    {
        $encoding = $app->charset;
        if ($app->reqHelper->enableCsrfValidation) {
            return static::tag('meta', '', ['name' => 'csrf-param', 'content' => $app->reqHelper->csrfParam], $encoding) . "\n    "
                . static::tag('meta', '', ['name' => 'csrf-token', 'content' => $app->reqHelper->getCsrfToken()], $encoding) . "\n";
        }

        return '';
    }
public static function csrfMetaTags ( RequestApplicationInterface $ app ) { $ encoding = $ app -> charset ; if ( $ app -> reqHelper -> enableCsrfValidation ) { return static :: tag ( 'meta' , '' , [ 'name' => 'csrf-param' , 'content' => $ app -> reqHelper -> csrfParam ] , $ encoding ) . "\n    " . static :: tag ( 'meta' , '' , [ 'name' => 'csrf-token' , 'content' => $ app -> reqHelper -> getCsrfToken ( ) ] , $ encoding ) . "\n" ; } return '' ; }
Generates the meta tags containing CSRF token information.
@param RequestApplicationInterface $app
@return string the generated meta tags
@see \Reaction\Web\RequestHelper::enableCsrfValidation
Generates the meta tags containing CSRF token information .