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.
I am manipulating with entity displays quite a lot and it is very frustrating to copy, set or unset components at once.
I always have to loop multiple time through all of them in order to perform the action.
It would be very helpful if there would be methods that would allow me to do these operations on multiple/all components at once.
Especially setComponents(array $components) and removeComponents().
Comments