When creating a DsField plugin in the annotation you need to define the entity_type. This only accepts one value while their are use-cases where you would like to use this field across entity types. Be it a simple field for social media integration, working with start and end-dates or some other shared functionality.
I propose we add code to Ds.php to enable the use of an array in the entity_type annotation.
| Comment | File | Size | Author |
|---|---|---|---|
| #17 | 2781141-17.patch | 3.44 KB | aspilicious |
| #15 | 2781141-15.patch | 2.29 KB | aspilicious |
| #13 | annotation_entity_type_2781141_7.patch | 716 bytes | Algeron |
| #8 | annotation_entity_type_2781141_6.patch | 757 bytes | Algeron |
| #5 | annotation_entity_type_2781141_5.patch | 858 bytes | zerdiox |
Comments
Comment #2
zerdiox commentedI've added a patch with code that enables what I suggested.
EDIT: Patch was bad, added a new one.
Comment #3
zerdiox commentedNew patch
Comment #4
zerdiox commentedThird times a charm?
Comment #5
zerdiox commentedComment #6
aspilicious commentedComment #7
aspilicious commentedComment #8
Algeron commentedPatch was not relative to the DS module.
Comment #12
aspilicious commentedThere also needs to be a small test.
This is a fairly easy task for anyone that wants to write a test.
Comment #13
Algeron commentedPatch was still borked. Uploaded a new one.
Comment #14
swentel commented'else' needs to go on a new line.
Comment #15
aspilicious commentedLets see if this gets green.
Comment #17
aspilicious commentedAnother try
Comment #19
aspilicious commented