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.
Hello,
It would be nice for Asset entities to have their title replace-able / translatable..
Jonathan-David
Comment | File | Size | Author |
---|---|---|---|
#2 | asset_title_replaceable_2093801_comment_1.patch | 506 bytes | myselfhimself |
#1 | asset_title_replaceable_2093801_comment_2.patch | 650 bytes | myselfhimself |
Comments
Comment #1
myselfhimself CreditAttribution: myselfhimself commentedHere's a patch to allow for Asset entities title field replacing with title_field field, allowing for title translation.
This patch is just a copy paste of the 'title' field replacement code for 'node' entity within title_entity_info(), where the entity name is changed to 'asset'.
Comment #2
myselfhimself CreditAttribution: myselfhimself commentedHere's a better formatted patch!
Comment #3
DrColossos CreditAttribution: DrColossos commentedwe are using this patch for a long time and it works very well for us
Comment #4
plachSorry, Title implements its own API only for core modules. This should be moved to the Asset queue and adjusted accordingly.