public function hasExtension($name) { return isset($this->extensions[$name]); }
/** * {@inheritDoc} */ public function process($layoutSrc, Response $response, array $placeResponses) { if (!$this->twig->hasExtension('supraPage')) { throw new \UnexpectedValueException('Missing for Supra Page extension.'); } $response->setContent($this->twig->render($layoutSrc, array('responses' => $placeResponses))); }