This project is not covered by Drupal’s security advisory policy.
Description
This module allows you to add additional HTML attributes for any text field.
Install
If your site is managed via Composer, use Composer to download the module.
composer require drupal/field_attribute:^2.0
Or
Install the module as any other module.
Enable
Enable the module in 'Extend' page (/admin/modules).
Or
use Drush: drush en field_attribute
Usage
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 textfield field formatter, revealed by using the formatter settings edit button (Gear wheel icon) for that field.
Project information
Minimally maintained
Maintainers monitor issues, but fast responses are not guaranteed.Maintenance fixes only
Considered feature-complete by its maintainers.- Project categories: Site structure, Developer tools
30 sites report using this module
- Created by slivorezka on , updated
This project is not covered by the security advisory policy.
Use at your own risk! It may have publicly disclosed vulnerabilities.


