You are here

function claro_theme_registry_alter in Drupal 8

Same name and namespace in other branches
  1. 9 core/themes/claro/claro.theme \claro_theme_registry_alter()
  2. 10 core/themes/claro/claro.theme \claro_theme_registry_alter()

Implements hook_theme_registry_alter().

File

core/themes/claro/claro.theme, line 294
Functions to support theming in the Claro theme.

Code

function claro_theme_registry_alter(&$theme_registry) {
  if (!empty($theme_registry['admin_block_content'])) {
    $theme_registry['admin_block_content']['variables']['attributes'] = [];
  }

  // @todo Remove when https://www.drupal.org/node/3016346 is fixed.
  if (!empty($theme_registry['text_format_wrapper'])) {
    $theme_registry['text_format_wrapper']['variables']['disabled'] = FALSE;
  }
}