function claro_theme_registry_alter

Same name in other branches
  1. 9 core/themes/claro/claro.theme \claro_theme_registry_alter()
  2. 8.9.x core/themes/claro/claro.theme \claro_theme_registry_alter()
  3. 11.x core/themes/claro/claro.theme \claro_theme_registry_alter()

Implements hook_theme_registry_alter().

File

core/themes/claro/claro.theme, line 317

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;
    }
}

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