It affects performance. It is often combined with the Needs profiling tag.
Part of #1839338: [meta] Remove drupal_set_*() drupal_add_*() in favour of #attached/response for out-of-band stuff.
Initial patch...
Isn't it better to replace the theme function with a render array while we are on it?
Not sure that's scope of this issue...
The last submitted patch, 1: 2160577-drupal_add-batch-1.patch, failed testing.
1: 2160577-drupal_add-batch-1.patch queued for re-testing.
Indeed, #3, as #4 says, that's out of scope.
However… #2068471: Normalize Controller/View-listener behavior with a Page object did precisely that, and also fixed this issue in the process. YAY :)
Comments
Comment #1
vijaycs85Initial patch...
Comment #2
vijaycs85Comment #3
aspilicious CreditAttribution: aspilicious commentedIsn't it better to replace the theme function with a render array while we are on it?
Comment #4
vijaycs85Not sure that's scope of this issue...
Comment #6
vijaycs851: 2160577-drupal_add-batch-1.patch queued for re-testing.
Comment #7
Wim LeersIndeed, #3, as #4 says, that's out of scope.
However… #2068471: Normalize Controller/View-listener behavior with a Page object did precisely that, and also fixed this issue in the process. YAY :)