public function Twig_Filter_Method::compile in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/twig/twig/lib/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/ twig/ lib/ Twig/ Filter/ Method.php, line 38
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);
}