How can I alter field value

Created on 2 March 2021, almost 4 years ago
Updated 21 March 2024, 10 months ago

Please only use Merge requests for contributing to this issue. Using Gitlab β†’ Please do not use patches for contributing to this project.

Problem/Motivation

I have a link field with URI and title (multi value) which I need to alter.
hook_preprocess_views_view_field() does not work. It seems that this function is never called from custom module.
I just want to alter the link field with the specific field name NOT all link fields.

Steps to reproduce

Proposed resolution

Add Module alter hook

Remaining tasks

1. Convert to Merge request on version 3
2. Use Drupal::moduleHandler()->alter() instead of invoke all
3. Use dependency injection
4. Add alter to all formatters

User interface changes

N/A

API changes

N/A

Data model changes

N/A

✨ Feature request
Status

Needs work

Version

3.0

Component

Miscellaneous

Created by

πŸ‡©πŸ‡ͺGermany vistree

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