Custom link attributes for link sub-fields#
Here are instructions on how to add/remove/modify the available link attributes for link subfields.
- Copy the custom_field.custom_field_link_attributes.yml file to the root of your own custom module.
- Rename the prefix of the file to the machine name of your module. e.g. my_module.custom_field_link_attributes.yml
- Add/Remove/Modify attributes.
- Clear cache.
Examples#
Add a new data type attribute as a checkbox:
1 2 3 | |
Modify the existing class attribute to be checkboxes of limited options:
1 2 3 4 5 6 7 | |