Implement an entity label

Created on 4 May 2017, about 7 years ago
Updated 8 March 2024, 4 months ago

Problem/Motivation

Implementing this module alongside Entity Reference Multiple β†’ I was unable to get the display title to show. Despite using a custom theme the markup had already been generated using the default entity label.

Proposed resolution

As the field name is hard-coded add the following hooks to enable the use of the display title everywhere:

hook_entity_info_alter()
custom callback_entity_info_label()

See this gist as the basis for this:

https://gist.github.com/BrizzleRocker/e183cb077ee012cb1adb80b9f9ab1a4f

✨ Feature request
Status

Closed: outdated

Version

1.0

Component

Code

Created by

πŸ‡¬πŸ‡§United Kingdom Andy_D

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡ΊπŸ‡¦Ukraine AstonVictor

    I'm closing it because the issue was created a long time ago without any further steps.

    if you still need it then raise a new one.
    thanks

Production build 0.69.0 2024