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.

CommentFileSizeAuthor
#3 2028415-drupal_add_deprecated.patch847 bytesCameron Tod
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

andypost’s picture

So what the explanation needs to be written after @deprecated ?

catch’s picture

Use #attached instead.

Cameron Tod’s picture

Status: Active » Needs review
FileSize
847 bytes

Here we go.

Crell’s picture

Status: Needs review » Reviewed & tested by the community

Looks god.

Dries’s picture

Status: Reviewed & tested by the community » Fixed

Committed to 8.x. Thanks.

Wim Leers’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.