function claro_theme_registry_alter in Drupal 10
Same name and namespace in other branches
- 8 core/themes/claro/claro.theme \claro_theme_registry_alter()
- 9 core/themes/claro/claro.theme \claro_theme_registry_alter()
Implements hook_theme_registry_alter().
File
- core/
themes/ claro/ claro.theme, line 302 - 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;
}
}