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;
/**
* Form Extra Twig extension.
* @author GeLo <[email protected]>
class FormExtraExtension extends \Twig_Extension
{
* {@inheritdoc}
public function getFunctions()
$options = array(
'node_class' => 'Symfony\Bridge\Twig\Node\SearchAndRenderBlockNode',
'is_safe' => array('html'),
);
return array(
new \Twig_SimpleFunction('form_javascript', null, $options),
new \Twig_SimpleFunction('form_stylesheet', null, $options),
}
public function getName()
return 'ivory_form_extra';