1 field.api.php hook_field_formatter_settings_summary_alter(&$summary, array $context)

Alter the short summary for the current formatter settings of an instance.

@since 1.13.0

Parameters

$summary: A string containing a short summary of the formatter settings.

$context: An array with additional context for the summary:

  • field: The field structure.
  • instance: The instance structure.
  • view_mode: The view mode for which a settings summary is requested.

See also

hook_field_formatter_settings_summary()

Related topics

File

core/modules/field/field.api.php, line 1311
Hooks provided by the Field module.

Code

function hook_field_formatter_settings_summary_alter(&$summary, array $context) {

}