public function KintExtension::getFunctions in Devel 8.2
Same name and namespace in other branches
- 8 kint/src/Twig/KintExtension.php \Drupal\kint\Twig\KintExtension::getFunctions()
File
- kint/
src/ Twig/ KintExtension.php, line 20
Class
- KintExtension
- Provides the Kint debugging function within Twig templates.
Namespace
Drupal\kint\TwigCode
public function getFunctions() {
return array(
new \Twig_SimpleFunction('kint', array(
$this,
'kint',
), array(
'is_safe' => array(
'html',
),
'needs_environment' => TRUE,
'needs_context' => TRUE,
'is_variadic' => TRUE,
)),
);
}