In D7 we had hook_library() which was renamed hook_library_info() in D8 and ultimately, *.libraries.yml.
In a render element #attached library is always an array and as such should be renamed #attached libraries to be consistent with the file naming.
Comments
Comment #1
dawehnerThat ship has certainly sailed for 8.0.x
Comment #2
catchWe could alias that in a minor version and deprecate library.
I wouldn't want to do that now, but it might make sense closer to opening up 9.x for forwards compatibility.
Comment #7
joelpittetMoving back to 9.x so that those bumping version comments are stopped. We can still look at this closer to 9.x
Comment #8
dawehnerAt least for me I always have to look it up. I'm wondering whether accepting that both are valueable names and users just randomly choose of them is maybe something we have to accept?
Comment #10
xjmThis would be a minor-only change. Since 8.9.x and 9.0.x are now in beta, I'm moving this to 9.1.x. It doesn't need to be postponed anymore. Thanks!
Comment #14
nod_