public function Twig_Environment::hasExtension in Translation template extractor 6.3
Same name and namespace in other branches
- 7.3 vendor/Twig/Environment.php \Twig_Environment::hasExtension()
 
Returns true if the given extension is registered.
Parameters
string $name The extension name:
Return value
bool Whether the extension is registered or not
File
- vendor/
Twig/ Environment.php, line 631  
Class
- Twig_Environment
 - Stores the Twig configuration.
 
Code
public function hasExtension($name) {
  return isset($this->extensions[$name]);
}