1<?php 2/* vim: set expandtab sw=4 ts=4 sts=4: */ 3/** 4 * hold PhpMyAdmin\Twig\CoreExtension class 5 * 6 * @package PhpMyAdmin\Twig 7 */ 8namespace PhpMyAdmin\Twig; 9 10use Twig\Extension\AbstractExtension; 11use Twig\TwigFunction; 12 13/** 14 * Class CoreExtension 15 * 16 * @package PhpMyAdmin\Twig 17 */ 18class CoreExtension extends AbstractExtension 19{ 20 /** 21 * Returns a list of functions to add to the existing list. 22 * 23 * @return TwigFunction[] 24 */ 25 public function getFunctions() 26 { 27 return array( 28 new TwigFunction( 29 'Core_mimeDefaultFunction', 30 'PhpMyAdmin\Core::mimeDefaultFunction', 31 array('is_safe' => array('html')) 32 ), 33 ); 34 } 35} 36