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...
Intendation issues. While we are here we can maybe also attach the library?
yep, here we go.
The last submitted patch, 1: 2160581-drupal_add-install-core-1.patch, failed testing.
The last submitted patch, 3: 2160581-drupal_add-install-core-3.patch, failed testing.
Ok, lets try with $form
Works well. Manually tested. RTBC.
Only one nitpick: a newline was added for no reason. Removing that again.
Committed/pushed to 8.x, thanks!
Automatically closed - issue fixed for 2 weeks with no activity.
Comments
Comment #1
vijaycs85Initial patch...
Comment #2
aspilicious CreditAttribution: aspilicious commentedIntendation issues. While we are here we can maybe also attach the library?
Comment #3
vijaycs85yep, here we go.
Comment #7
vijaycs85Ok, lets try with $form
Comment #8
Wim LeersWorks well. Manually tested. RTBC.
Only one nitpick: a newline was added for no reason. Removing that again.
Comment #9
catchCommitted/pushed to 8.x, thanks!