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
Configurable languages are configuration entities but we still have language CRUD hooks - this is unnecessary.
Proposed resolution
- Remove hook_language_delete, hook_language_insert, hook_language_update, and hook_language_presave
- Use hook_language_entity_delete, hook_language_entity_insert, hook_language_entity_update, and hook_language_entity_presave instead
Remaining tasks
Review patch
User interface changes
None
API changes
Remove hook_language_delete, hook_language_insert, hook_language_update, and hook_language_presave
Comment | File | Size | Author |
---|---|---|---|
#2 | 2223249.2.patch | 9.9 KB | alexpott |
#1 | 2223249.1.patch | 0 bytes | alexpott |
Comments
Comment #1
alexpottPatch. Yay for every entity working the same way.
Comment #2
alexpottYay again :)
Comment #4
Gábor HojtsyMakes lots of sense :) Will review later.
Comment #5
BerdirRelated: #2166923: Move language entity (CR)UD API to a dedicated service
Comment #6
Gábor HojtsyLooks good. All changes look logical, nice that the superfluous hooks are removed. Better for all :)
Comment #7
webchickWell this looks lovely! Needs a change notice still, though.
Comment #8
attila.fekete CreditAttribution: attila.fekete commentedPrepared a change record for this issue: https://drupal.org/node/2225341
Comment #9
Gábor HojtsyWoah, that looks great!
Comment #10
Gábor HojtsyComment #11
catchCommitted/pushed to 8.x, thanks!
Comment #12
catchCommitted/pushed to 8.x, thanks!
Comment #14
Gábor HojtsyYay, this is a simple and great improvement :)