function color_block_view_system_branding_block_alter in Drupal 9
Same name and namespace in other branches
- 8 core/modules/color/color.module \color_block_view_system_branding_block_alter()
Implements hook_block_view_BASE_BLOCK_ID_alter().
File
- core/
modules/ color/ color.module, line 118 - Allows users to change the color scheme of themes.
Code
function color_block_view_system_branding_block_alter(array &$build, BlockPluginInterface $block) {
$build['#pre_render'][] = [
ColorSystemBrandingBlockAlter::class,
'preRender',
];
}