Same name and namespace in other branches
- 10 core/modules/field/field.api.php \field_formatter
- 8.9.x core/modules/field/field.api.php \field_formatter
- 9 core/modules/field/field.api.php \field_formatter
Define Field API formatter types.
Field API formatters specify how fields are displayed when the entity to which the field is attached is displayed. Fields of a given field type may be displayed using more than one formatter. In this case, the Field UI module allows the site builder to choose which formatter to use. Field formatters are defined by implementing hook_field_formatter_info().
See also
Parent topics
File
- modules/
field/ field.api.php, line 1050 - Hooks provided by the Field module.
Functions
Name | Location | Description |
---|---|---|
hook_field_formatter_view |
modules/ |
Build a renderable array for a field value. |
hook_field_formatter_prepare_view |
modules/ |
Allow formatters to load information for field values being displayed. |
hook_field_formatter_info_alter |
modules/ |
Perform alterations on Field API formatter types. |
hook_field_formatter_info |
modules/ |
Expose Field API formatter types. |