Closed (fixed)
Project:
REST Views
Version:
2.0.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
21 Nov 2018 at 17:58 UTC
Updated:
18 Jun 2020 at 10:59 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
balbuf commentedPatch for the functionality described in the issue description. This was rolled against 1.0.0-alpha9, but it should work fine against 1.0.0-alpha10 as well.
Comment #3
balbuf commentedFixed patch! There was a namespace issue in the original.
Comment #4
balbuf commentedI'm not sure how I uploaded an empty file last time, but here is the actual fixed patch. Oy vey!
Comment #5
cburschkaThe trait refactor is an interesting idea, but since those methods are overrides I don't think we can/should do that. Referring to
parent::inside a trait will at the very least violate code standards, and there is no clean pattern to get around it.::renderItems() could possibly be extracted to a trait, but that'd still require adding abstract methods / getters for all methods and properties used by it (->renderer, ->multiple, ->prepareItemsByDelta()), and wouldn't reduce tech debt.
All in all, without multiple inheritance in PHP, I suspect duplicating the code ends up being the lesser evil there.
Comment #7
cburschka