Problem/Motivation
The addComponentToLayout config action is great, but you can only use it once on any given config entity. There's no pluralized version. If you want to add multiple components to a layout you're just screwed.
This is such a knuckleheaded oversight on my part (shoulda noticed this in review) that I am categorizing it as a bug.
Proposed resolution
Add a pluralized version of the action, addComponentsToLayout, for clarity, and change the action to support $value being a list.
Issue fork drupal-3540305
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
phenaproximaComment #4
phenaproximaComment #5
thejimbirch commentedPHPstan doesn't like this:
Comment #6
thejimbirch commentedThanks for fixing that. Since it is a bug, it doesn't need a change record. I will add an issue to update our documentation when this lands.
Marking as RTBC.
Comment #7
thejimbirch commentedComment #8
penyaskito@phenaproxima pinged me about this as the author of the original action, this looks great to me.
Comment #9
alexpottThis is a nice improvement. Backported to 11.2.x as recipes and config actions are experimental and this is an addition.
Committed and pushed a8c4e56ccf8 to 11.x and 175d099d3c4 to 11.2.x. Thanks!