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
There are a number of $this->entityManager->getFieldStorageDefinitions()
calls in SqlContentEntityStorageSchema
. That class already has a $fieldStorageDefinitions
property which is always set and already contains the same thing.
Proposed resolution
Use $this->fieldStorageDefinitions
instead of $this->entityManager->getFieldStorageDefinitions()
in SqlContentEntityStorageSchema
.
Remaining tasks
User interface changes
None.
API changes
None.
Data model changes
None.
Comment | File | Size | Author |
---|---|---|---|
#5 | 2867325-5.patch | 4.18 KB | joshmiller |
#4 | 2867325-2.patch | 4.18 KB | tstoeckler |
Comments
Comment #2
tstoecklerHere we go. Will open the issue for which this is a blocker in a minute, but since this is such a harmless change (and the other one will be a bit contentious I fear) wanted to have this separately.
Comment #3
tstoecklerActually that's a bug I found with #2346019: Handle initial values when creating a new field storage definition that I had applied locally. So this is still a nice quickfix, but does not actually block anything.
Comment #4
tstoecklerD'oh, maybe I should actually upload a patch, no?
Comment #5
joshmillerRerolled. Offset on HEAD by 10 lines.
FWIW, RTBC .. though since I rerolled, I don't think I can RTBC.
Comment #6
BerdirMakes sense.
This might also help with issues related to uninstalling entity types/field storage definitions.
Comment #9
catchCommitted/pushed to 8.5.x and cherry-picked to 8.4.x. Thanks!