public function getFunctions() { return array(new \Twig_SimpleFunction('tray', [$this, 'tray'], array('is_safe' => array('html')))); }