Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 299069

Create a means to mark a library as deprecated in a *.library.yml file

$
0
0

Problem/Motivation

Currently in core we have no way to deprecate libraries included in core library files. As jQuery UI is EOL, we need a way to mark the various jQuery libraries as deprecated to be removed in Drupal 9 or 10.

Proposed resolution

From @catch:
For libraries the obvious place to trigger a deprecation error would be Drupal\Core\Asset\LibraryDiscovery::getLibraryByName() - by adding a 'deprecated' key to library definitions with a deprecation message as the value.

Remaining tasks

  1. RTBC
  2. Commit
  3. Publish change record

User interface changes

None

API changes

*.libraries.yml files will allow a new deprecation-message key which, if provided will trigger an error in Drupal\Core\Asset\LibraryDiscovery::getLibraryByName().

Data model changes

None

Release notes snippet

.libraries.yml files now support marking libraries as deprecated.


Viewing all articles
Browse latest Browse all 299069

Latest Images

Trending Articles



Latest Images