public function Twig_Filter_Method::compile in Translation template extractor 6.3
Same name and namespace in other branches
- 7.3 vendor/Twig/Filter/Method.php \Twig_Filter_Method::compile()
Compiles a filter.
Return value
string The PHP code for the filter
Overrides Twig_FilterInterface::compile
File
- vendor/
Twig/ Filter/ Method.php, line 35
Class
- Twig_Filter_Method
- Represents a method template filter.
Code
public function compile() {
return sprintf('$this->env->getExtension(\'%s\')->%s', $this->extension
->getName(), $this->method);
}