You are here

public function Twig_Function_Function::__construct in Translation template extractor 6.3

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

Overrides Twig_Function::__construct

File

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

Class

Twig_Function_Function
Represents a function template function.

Code

public function __construct($function, array $options = array()) {
  $options['callable'] = $function;
  parent::__construct($options);
  $this->function = $function;
}