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