Is your feature request related to a problem? Please describe.
YAML itself is a static format. It might be useful to manipulate the data array provided by the content blocks YAML file to replace or enhance the configuration before it is processed.
In my case, I use it to replace the cropVariants property. I like to have my crop variants configured in a central place with an identifier. In the YAML file, I only add the identifier as a cropping variant. By calling an event, I added using composer patches, I am able to replace this identifier with the actual array structure the extension expects.
Describe the solution you'd like
Adding an event after YAML parsing that allows the manipulation of the data.
Describe alternatives you've considered
I guess I can keep up patching every system I maintain ^^
Additional context
It would be nice to have this backported to 1.x but not mandatory.
Is your feature request related to a problem? Please describe.
YAML itself is a static format. It might be useful to manipulate the data array provided by the content blocks YAML file to replace or enhance the configuration before it is processed.
In my case, I use it to replace the
cropVariantsproperty. I like to have my crop variants configured in a central place with an identifier. In the YAML file, I only add the identifier as a cropping variant. By calling an event, I added using composer patches, I am able to replace this identifier with the actual array structure the extension expects.Describe the solution you'd like
Adding an event after YAML parsing that allows the manipulation of the data.
Describe alternatives you've considered
I guess I can keep up patching every system I maintain ^^
Additional context
It would be nice to have this backported to 1.x but not mandatory.