You are here

class Twig_Function_Function in Translation template extractor 6.3

Same name and namespace in other branches
  1. 7.3 vendor/Twig/Function/Function.php \Twig_Function_Function

Represents a function template function.

Use Twig_SimpleFunction instead.

@author Arnaud Le Blanc <arnaud.lb@gmail.com>

Hierarchy

Expanded class hierarchy of Twig_Function_Function

Deprecated

since 1.12 (to be removed in 2.0)

File

vendor/Twig/Function/Function.php, line 21

View source
class Twig_Function_Function extends Twig_Function {
  protected $function;
  public function __construct($function, array $options = array()) {
    $options['callable'] = $function;
    parent::__construct($options);
    $this->function = $function;
  }
  public function compile() {
    return $this->function;
  }

}

Members