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

LibraryDiscoveryParser::buildByExtension() doesn't validate that extensions exist

$
0
0

Problem/Motivation

If you pass a completely invalid extension to LibraryDiscoveryParser::buildByExtension() it just assumes it's a theme. This results in php notices when trying to load the libraries.yml file and similar.

Proposed resolution

Provide a more useful error message, ideally throw an exception if we don't think it's breaking bc to do so.

Remaining tasks

User interface changes

API changes

Data model changes


Viewing all articles
Browse latest Browse all 291765

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>