function BlockContentHooks::theme

Implements hook_theme().

Attributes

#[Hook('theme')]

File

core/modules/block_content/src/Hook/BlockContentHooks.php, line 58

Class

BlockContentHooks
Hook implementations for block_content.

Namespace

Drupal\block_content\Hook

Code

public function theme($existing, $type, $theme, $path) : array {
  return [
    'block_content_add_list' => [
      'variables' => [
        'content' => NULL,
      ],
      'deprecated' => 'The "block_content_add_list" template is deprecated in drupal:11.3.0 and is removed from drupal:12.0.0. Use "entity_add_list" instead. See https://www.drupal.org/node/3530643.',
    ],
  ];
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.