You are here

public function Twig_Environment::hasExtension in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/twig/twig/lib/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/twig/lib/Twig/Environment.php, line 755

Class

Twig_Environment
Stores the Twig configuration.

Code

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