You are here

function block_theme in Drupal 8

Same name and namespace in other branches
  1. 6 modules/block/block.module \block_theme()
  2. 7 modules/block/block.module \block_theme()
  3. 9 core/modules/block/block.module \block_theme()
  4. 10 core/modules/block/block.module \block_theme()

Implements hook_theme().

7 string references to 'block_theme'
BlockForm::form in core/modules/block/src/BlockForm.php
Gets the actual form array to be built.
ConfigureBlockFormBase::doBuildForm in core/modules/layout_builder/src/Form/ConfigureBlockFormBase.php
Builds the form for the block.
d6_block.yml in core/modules/block/migrations/d6_block.yml
core/modules/block/migrations/d6_block.yml
d6_block_translation.yml in core/modules/content_translation/migrations/d6_block_translation.yml
core/modules/content_translation/migrations/d6_block_translation.yml
d7_block.yml in core/modules/block/migrations/d7_block.yml
core/modules/block/migrations/d7_block.yml

... See full list

File

core/modules/block/block.module, line 55
Controls the visual building blocks a page is constructed with.

Code

function block_theme() {
  return [
    'block' => [
      'render element' => 'elements',
    ],
  ];
}