Create an htmx_entity_view_field route

Created on 7 August 2025, 17 days ago

Problem/Motivation

We have ability to get a whole entity in particular view mode but it would be extra powerful to fetch a specific field in a particular view mode.

Proposed resolution

Create new route:
htmx.htmx_entity_view_field
Create new controller: HtmxEntityViewFieldController

Remaining tasks

Patch coming.

API changes

New route available: /htmx/field/{entityType}/{entity}/{field}/{viewMode}

✨ Feature request
Status

Active

Version

1.4

Component

Drupal Code

Created by

πŸ‡ΊπŸ‡ΈUnited States apmsooner

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

Comments & Activities

Production build 0.71.5 2024