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.
drupal_add_css() and drupal_add_js() should both be marked deprecated. If the functions survive 8.0 they'll only be used internally if we're going to support render caching at all.
I'd like to mark drupal_set_title() and others deprecated as well, but that doesn't have an exact equivalent for all cases yet so not sure if we can get away with that.
Comment | File | Size | Author |
---|---|---|---|
#3 | 2028415-drupal_add_deprecated.patch | 847 bytes | Cameron Tod |
Comments
Comment #1
andypostSo what the explanation needs to be written after @deprecated ?
Comment #2
catchUse #attached instead.
Comment #3
Cameron Tod CreditAttribution: Cameron Tod commentedHere we go.
Comment #4
Crell CreditAttribution: Crell commentedLooks god.
Comment #5
Dries CreditAttribution: Dries commentedCommitted to 8.x. Thanks.
Comment #6
Wim LeersJust for future reference: this was spun off from #1839338-23: [meta] Remove drupal_set_*() drupal_add_*() in favour of #attached/response for out-of-band stuff.