public function Twig_Environment::removeExtension

Removes an extension by name.

Parameters

string $name The extension name:

File

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

Class

Twig_Environment
Stores the Twig configuration.

Code

public function removeExtension($name) {
  unset($this->extensions[$name]);
  $this->parsers = null;
  $this->visitors = null;
  $this->filters = null;
  $this->tests = null;
  $this->functions = null;
  $this->globals = null;
}