function ContentModerationHooks::theme

Same name and namespace in other branches
  1. 11.x core/modules/content_moderation/src/Hook/ContentModerationHooks.php \Drupal\content_moderation\Hook\ContentModerationHooks::theme()

Implements hook_theme().

Attributes

#[Hook('theme')]

File

core/modules/content_moderation/src/Hook/ContentModerationHooks.php, line 271

Class

ContentModerationHooks
Hook implementations for content_moderation.

Namespace

Drupal\content_moderation\Hook

Code

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

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