By ekl1773 on
Change record status:
Published (View all published change records)
Project:
Introduced in branch:
8.x
Issue links:
Description:
Summary:
Color module doesn't require themes to call _color_html_alter and _color_page_alter anymore. These two functions have been removed, and themes that still use them will break.
Old code:
<?php
...
function MYTHEME_process_html(&$variables) {
// Hook into color.module.
if (module_exists('color')) {
_color_html_alter($variables);
}
}
...
function MYTHEME_process_page(&$variables) {
$site_config = Drupal::config('system.site');
// Hook into color.module.
if (module_exists('color')) {
_color_page_alter($variables);
}
...
?>
Impacts:
Module developers
Themers