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

Breadcrumb

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

function BlockHooks::theme

Implements hook_theme().

File

core/modules/block/src/Hook/BlockHooks.php, line 59

Class

BlockHooks
Hook implementations for block.

Namespace

Drupal\block\Hook

Code

public function theme() : array {
    return [
        'block' => [
            'render element' => 'elements',
        ],
    ];
}

API Navigation

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