public function displayParentBlock($name, array $context, array $blocks = array())
    {
        $name = (string) $name;

        if (isset($this->traits[$name])) {
            $this->traits[$name][0]->displayBlock($name, $context, $blocks);
        } elseif (false !== $parent = $this->getParent($context)) {
            $parent->displayBlock($name, $context, $blocks);
        } else {
            throw new Twig_Error_Runtime(sprintf('The template has no parent and no traits defining the "%s" block', $name), -1, $this->getTemplateName());
        }
    }
public function displayParentBlock($name, array $context, array $blocks = array())
    {
        $name = (string) $name;

        if (isset($this->traits[$name])) {
            $this->traits[$name][0]->displayBlock($name, $context, $blocks);
        } elseif (false !== $parent = $this->getParent($context)) {
            $parent->displayBlock($name, $context, $blocks);
        } else {
            throw new Twig_Error_Runtime(sprintf('The template has no parent and no traits defining the "%s" block', $name), -1, $this->getTemplateName());
        }
    }
public function displayParentBlock ( $ name , array $ context , array $ blocks = array ( ) ) { $ name = ( string ) $ name ; if ( isset ( $ this -> traits [ $ name ] ) ) { $ this -> traits [ $ name ] [ 0 ] -> displayBlock ( $ name , $ context , $ blocks ) ; } elseif ( false !== $ parent = $ this -> getParent ( $ context ) ) { $ parent -> displayBlock ( $ name , $ context , $ blocks ) ; } else { throw new Twig_Error_Runtime ( sprintf ( 'The template has no parent and no traits defining the "%s" block' , $ name ) , - 1 , $ this -> getTemplateName ( ) ) ; } }
Displays a parent block.

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

@param string $name    The block name to display from the parent
@param array  $context The context
@param array  $blocks  The current set of blocks
Displays a parent block .