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.
Currently drupal_get_filename needs to retrieve the whole of state()->get('system.' . $type . '.files');
. If, instead, this would be a separate namespace and invidual key-value pairs then, wherever we currently do need the whole array we could use ->getAll() and setMultiple() (or invidual sets, as it needs to be) but we would gain the flexibility of just getting a single file as necessary.
Comments
Comment #1
chx CreditAttribution: chx commentedI saw "Added 'enabled' key to system.module/.theme to avoid setData() + allow for other system critical config data." this as reasoning, well, setData exists so why avoid it, and as long as there is no other system critical config data, what to allow? Why those can't be in another config object?
Comment #2
chx CreditAttribution: chx commentedBump.
Comment #3
mgiffordJust unassigning issues that haven't been developed for a bit in the D8 queue.
Comment #7
dawehner#2208429: Extension System, Part III: ExtensionList, ModuleExtensionList and ProfileExtensionList is a duplicate of that.