public function getExtension($name)
    {
        if (!isset($this->extensions[$name])) {
            throw new Twig_Error_Runtime(sprintf('The "%s" extension is not enabled.', $name));
        }

        return $this->extensions[$name];
    }
public function getExtension($name)
    {
        if (!isset($this->extensions[$name])) {
            throw new Twig_Error_Runtime(sprintf('The "%s" extension is not enabled.', $name));
        }

        return $this->extensions[$name];
    }
public function getExtension ( $ name ) { if ( ! isset ( $ this -> extensions [ $ name ] ) ) { throw new Twig_Error_Runtime ( sprintf ( 'The "%s" extension is not enabled.' , $ name ) ) ; } return $ this -> extensions [ $ name ] ; }
Gets an extension by name.

@param string $name The extension name

@return Twig_ExtensionInterface A Twig_ExtensionInterface instance
Gets an extension by name .