Part of #2073819: [META] Remove direct calls to drupal_add_css().

Problem/Motivation

Remove the drupal_add_css() from comments, docblock:

  1. /core/includes/ajax.inc
  2. /core/lib/Drupal/Core/Ajax/AjaxResponse.php
  3. /core/lib/Drupal/Core/Asset/CssCollectionGrouper.php
  4. /core/modules/system/system.api.php
  5. /core/modules/views_ui/lib/Drupal/views_ui/ViewFormControllerBase.php

Proposed resolution

Fix the listed above...

Remaining tasks

User interface changes

API changes

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

star-szr’s picture

Issue tags: +Novice

Seems like a good novice task.

vijaycs85’s picture

Yep,more of documentation.

martin107’s picture

Here is an initial first pass.

The language used feels slightly clumsy but this is inkeeping with the original comments.
I will make deeper edits if requested, but is this outside the scope of the issue?

Note that it is impossible to remove all reference to drupal_add_css/js as some of them related to @todo's to change the code
once the deprecated function calls are removed.

vijaycs85’s picture

Status: Active » Needs review

Thanks @martin107, let testboat review it.

kelmadics’s picture

add edits to ajax.inc and ajaxresponse.inc

martin107’s picture

Status: Needs review » Reviewed & tested by the community
catch’s picture

Status: Reviewed & tested by the community » Fixed

Committed/pushed to 8.x, thanks!

Status: Fixed » Closed (fixed)

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