This module allows site administrators to add additional HTML attributes to the wrapping markup on any field in the Manage Display settings page and in Layout Builder.
Instructions
The field formatter attributes settings are found in the Manage display tab for content types, users, and other entities. A options element is available for each field formatter, revealed by using the formatter settings edit button (Gear wheel icon) for that field.
Finally copy the field.html.twig file into your theme to allow access to all features. Or make your existing template compatible.
Dependencies
No dependencies outside of Drupal core. There is however a field.html.twig file which is recommended for use with this module. It is a drop-in replacement for the core provided template.
Related projects
This module is based on the Field Formatter Class module. It has simply been extended to allow arbitrary attribute name/values to be added.
Project information
- Project categories: Content display, Site structure
33 sites report using this module
- Created by jamsilver on , updated
Stable releases for this project are covered by the security advisory policy.
There are currently no supported stable releases.
Releases
Development version: 2.x-dev updated 28 Apr 2026 at 19:49 UTC


