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

Breadcrumb

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

function Template::getBlocks

Returns all blocks.

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

Return value

array An array of blocks

File

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

Class

Template
Default base class for compiled templates.

Namespace

Twig

Code

public function getBlocks() : array {
    return $this->blocks;
}

API Navigation

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