Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. Template.php

function Template::displayParentBlock

Displays a parent block.

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

Parameters

string $name The block name to display from the parent:

array $context The context:

array $blocks The current set of blocks:

1 call to Template::displayParentBlock()
Template::renderParentBlock in vendor/twig/twig/src/Template.php
Renders a parent block.

File

vendor/twig/twig/src/Template.php, line 118

Class

Template
Default base class for compiled templates.

Namespace

Twig

Code

public function displayParentBlock($name, array $context, array $blocks = []) : void {
    foreach ($this->yieldParentBlock($name, $context, $blocks) as $data) {
        echo $data;
    }
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal