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.
Comment | File | Size | Author |
---|---|---|---|
#5 | update_base_field_de-3159029-5.patch | 1.18 KB | kristiaanvandeneynde |
|
Comments
Comment #2
BerdirComment #3
BerdirSomehow not quite working yet.
Comment #4
BerdirOk, I think it did work, but somehow I have some weird caching issues on my site. But I did simplify it to use not the trait but the actual class name and using bas field override entity query directly.
Could possibly do it in a single loop for both, but was too lazy for that :)
Comment #5
kristiaanvandeneyndeDon't think we should use the entity type manager in update hooks, right?
Comment #6
BerdirYeah, I was too lazy for that, looks good.
Comment #7
kristiaanvandeneyndeCheers, fixed.