You are here

public function Twig_Filter_Method::__construct in Translation template extractor 6.3

Same name and namespace in other branches
  1. 7.3 vendor/Twig/Filter/Method.php \Twig_Filter_Method::__construct()

Overrides Twig_Filter::__construct

File

vendor/Twig/Filter/Method.php, line 25

Class

Twig_Filter_Method
Represents a method template filter.

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;
}