class Twig_Filter_Function

Represents a function template filter.

@package twig @author Fabien Potencier <fabien@symfony.com>

Hierarchy

Expanded class hierarchy of Twig_Filter_Function

File

drupal/core/vendor/twig/twig/lib/Twig/Filter/Function.php, line 18

View source
class Twig_Filter_Function extends Twig_Filter {
  protected $function;
  public function __construct($function, array $options = array()) {
    parent::__construct($options);
    $this->function = $function;
  }
  public function compile() {
    return $this->function;
  }

}

Members