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.
Left-over from #2002102: Move TypedData primitive types to interfaces - that key does not exist any more.
Comment | File | Size | Author |
---|---|---|---|
#20 | 2047119-after_patch-14.png | 117.81 KB | Abhijith S |
#18 | Screen Shot 2020-07-29 at 6.37.36 PM.png | 328.98 KB | tanubansal |
#18 | Screen Shot 2020-07-29 at 6.34.11 PM.png | 327.64 KB | tanubansal |
#14 | d8_typed_docs.patch | 1.71 KB | fago |
#12 | remove-deprecated-2047119-12.patch | 1.73 KB | msankhala |
Comments
Comment #1
LinL CreditAttribution: LinL commentedRerolled as the patch no longer applied.
I've also changed where \Drupal\Core\TypedData\Primitive was mentioned, as it no longer exists. I've changed it to \Drupal\Core\TypedData\PrimitiveBase but I don't know if that is correct? Or maybe it should be \Drupal\Core\TypedData\PrimitiveInterface ? Or neither?!
Comment #3
jhedstromI might be missing something here, but how is
PrimitiveBase
defining types?Comment #4
mgiffordComment #10
msankhala CreditAttribution: msankhala as a volunteer and at Srijan | A Material+ Company commentedComment #11
msankhala CreditAttribution: msankhala as a volunteer and at Srijan | A Material+ Company commentedI think correct way to define this should be.
Defined data types may map to one of the pre-defined primitive types that implements \Drupal\Core\TypedData\PrimitiveInterface
Comment #12
msankhala CreditAttribution: msankhala as a volunteer and at Srijan | A Material+ Company commentedHere is updated patch.
Comment #14
fagoWell, primitive base is just the base class, but does not really point you to the interfaces. They are below \Type - updated the patch accordingly.
Comment #18
tanubansal CreditAttribution: tanubansal at Salsa Digital commentedTested via #14.
This can be moved to RTBC
Comment #20
Abhijith S CreditAttribution: Abhijith S as a volunteer and at Zyxware Technologies commentedApplied patch #14 on 9.2.x and it works fine.
Comment #22
larowlanCame across this in passing, and happy to find there was an existing issue.
Comment #24
catchCommitted 5d7ae05 and pushed to 9.3.x. Thanks!