You are here

public function Twig_Function_Method::__construct in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/twig/twig/lib/Twig/Function/Method.php \Twig_Function_Method::__construct()

Overrides Twig_Function::__construct

File

vendor/twig/twig/lib/Twig/Function/Method.php, line 29

Class

Twig_Function_Method
Represents a method template function.

Code

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