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
Map::getValue() currently has an optional $include_computed property, but this is not documented in any interface nor used anywhere. Furthermore, entity reference item does not respect it and include the value of entity value whenever it's needed.
Proposed resolution
Removed the include computed parameter and leave it up to the field items to return from getValue() whatever makes sense.
Remaining tasks
Get it done.
User interface changes
-
API changes
-
Comment | File | Size | Author |
---|---|---|---|
#1 | d8_get_value_computed.patch | 1.69 KB | fago |
Comments
Comment #1
fagoComment #2
fagoComment #3
yched CreditAttribution: yched commentedAgreed.
Comment #4
fagoComment #5
webchickWe wouldn't normally allow BC breaks for normal issues, but since this is both a bug fix and arguably reduces fragility by removing unused code, I think this is ok. https://www.drupal.org/contribute/core/beta-changes
Committed and pushed to 8.0.x. Thanks!