public function getParent(array $context)
    {
        if (null !== $this->parent) {
            return $this->parent;
        }

        $parent = $this->doGetParent($context);
        if (false === $parent) {
            return false;
        } elseif ($parent instanceof Twig_Template) {
            $name = $parent->getTemplateName();
            $this->parents[$name] = $parent;
            $parent = $name;
        } elseif (!isset($this->parents[$parent])) {
            $this->parents[$parent] = $this->env->loadTemplate($parent);
        }

        return $this->parents[$parent];
    }
public function getParent(array $context)
    {
        if (null !== $this->parent) {
            return $this->parent;
        }

        $parent = $this->doGetParent($context);
        if (false === $parent) {
            return false;
        } elseif ($parent instanceof Twig_Template) {
            $name = $parent->getTemplateName();
            $this->parents[$name] = $parent;
            $parent = $name;
        } elseif (!isset($this->parents[$parent])) {
            $this->parents[$parent] = $this->env->loadTemplate($parent);
        }

        return $this->parents[$parent];
    }
public function getParent ( array $ context ) { if ( null !== $ this -> parent ) { return $ this -> parent ; } $ parent = $ this -> doGetParent ( $ context ) ; if ( false === $ parent ) { return false ; } elseif ( $ parent instanceof Twig_Template ) { $ name = $ parent -> getTemplateName ( ) ; $ this -> parents [ $ name ] = $ parent ; $ parent = $ name ; } elseif ( ! isset ( $ this -> parents [ $ parent ] ) ) { $ this -> parents [ $ parent ] = $ this -> env -> loadTemplate ( $ parent ) ; } return $ this -> parents [ $ parent ] ; }
Returns the parent template.

This method is for internal use only and should never be called
directly.

@return Twig_TemplateInterface|false The parent template or false if there is no parent
Returns the parent template .