×" . "" . $name . " " . $content . ""; } $function = new Twig_SimpleFunction('makeError', 'viewError'); $twig->addFunction($function); $twig->addFunction( new \Twig_SimpleFunction( 'form_token', function($lock_to = null) { static $csrf; if ($csrf === null) { $csrf = new AntiCSRF; } return $csrf->insertToken($lock_to, false); }, ['is_safe' => ['html']] ) );