You are here

public function Twig_Parser::hasMacro in Translation template extractor 7.3

Same name and namespace in other branches
  1. 6.3 vendor/Twig/Parser.php \Twig_Parser::hasMacro()

File

vendor/Twig/Parser.php, line 245

Class

Twig_Parser
Default parser implementation.

Code

public function hasMacro($name) {
  return isset($this->macros[$name]);
}