for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the Ivory Form Extra package.
*
* (c) Eric GELOEN <[email protected]>
* For the full copyright and license information, please read the LICENSE
* file that was distributed with this source code.
*/
namespace Ivory\FormExtraBundle\Twig;
use Symfony\Bridge\Twig\Node\SearchAndRenderBlockNode;
/**
* @author GeLo <[email protected]>
class FormExtraExtension extends \Twig_Extension
{
* {@inheritdoc}
public function getFunctions()
$options = [
'node_class' => SearchAndRenderBlockNode::class,
'is_safe' => ['html'],
];
return [
new \Twig_SimpleFunction('form_javascript', null, $options),
new \Twig_SimpleFunction('form_stylesheet', null, $options),
}
public function getName()
return 'ivory_form_extra';