public function Twig_Environment::hasExtension

Returns true if the given extension is registered.

Parameters

string $name The extension name:

Return value

Boolean Whether the extension is registered or not

File

drupal/core/vendor/twig/twig/lib/Twig/Environment.php, line 604

Class

Twig_Environment
Stores the Twig configuration.

Code

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