function _twig_filter in Twig Input Filter 7
Callback: performs Twig rendering.
1 string reference to '_twig_filter'
- twig_filter_info in ./
twig.filter.inc - Implements hook_filter_info().
File
- ./
twig.filter.inc, line 23 - Filter module functionality for the Twig module.
Code
function _twig_filter($text, $filter, $format, $langcode, $cache, $cache_id) {
return _twig_render(array(
'template' => $text,
), array());
}