Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By nod_ on
Change record status:
Published (View all published change records)
Project:
Introduced in branch:
8.x
Issue links:
Description:
Theme functions are now using Drupal.theme
directly instead of declaring themselves in Drupal.theme.prototype
where some workaround code was needed to make Drupal.theme()
behave as intended.
Drupal 7
Drupal.theme.prototype.myThemeFunction = function (options) {
var markup = '';
return markup;
};
Drupal 8
Drupal.theme.myThemeFunction = function (options) {
var markup = '';
return markup;
};
Impacts:
Module developers