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.
Problem/Motivation
Overriding the PanelsIPEPageController routes is difficult, because the method return the instantiated JsonResponse.
Proposed resolution
Break the current route methods into two methods, the first returns an array, and the second returns the JsonResponse. With this delineation, an overriding class could override the data method, alter the data, and then let it be returns by the Json method.
Remaining tasks
review code and merge
User interface changes
none
API changes
Existing API's don't change but new methods are created.
Data model changes
none
Comment | File | Size | Author |
---|---|---|---|
PanelsIPEPageController.patch | 6.8 KB | douggreen | |
|
Comments
Comment #2
tim.plunkettThis looks great to me. Leaves the existing methods in place, and allows more flexibility
Comment #4
japerryLooks good. commited!