Pass field information in context

Created on 17 July 2018, almost 7 years ago
Updated 2 June 2025, 26 days ago

When the linked_field_settings alter hook is invoked, it's applied to all fields of the entity. However, the hook is never supplied the information about the current field its operating on. The hook is only supplied with information about the entity (type, display, language, etc.) and the settings of the current field being operated on (linked, path, text, etc.).

Suggesting the hook be supplied with at least the field name via the hook's context argument. From there, the hook can get the rest of the field information via the entity object that is present in the context.

✨ Feature request
Status

Closed: won't fix

Version

1.10

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States fskreuz

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.

Production build 0.71.5 2024