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.
The FieldConfig entity should have a dependency on the module that provides the entity type. So if you create a field on taxonomy terms then it will depend on the taxonomy module since the field has no meaning with the taxonomy module.
Comment | File | Size | Author |
---|---|---|---|
#4 | 2232597.4.patch | 8.03 KB | alexpott |
#4 | 1-4-interdiff.txt | 3.3 KB | alexpott |
#1 | 2232597.1.patch | 7.33 KB | alexpott |
Comments
Comment #1
alexpottA patch to what is outlined in the summary.
Comment #2
alexpottComment #3
BerdirThis is super-confusing. Can't we use two different entity type ID's if we need two different types? This doesn't seem like a realistic scenario, we could be calling it with the wrong ID or something?
Comment #4
alexpottGood point.
Comment #5
xjmComment #6
BerdirYes, now the test makes much more sense :)
I guess it would also be possible to solve getDefinition() with a $this->returnValueMap(), but the explicit expectations and explanation of calls is in this case is OK I think. (It sometimes is too strict and makes internal refactoring painful...)
Comment #7
catchCommitted/pushed to 8.x, thanks!