You are here

function lightning_media_field_widget_settings_summary_alter in Lightning Media 8.4

Same name and namespace in other branches
  1. 8 lightning_media.module \lightning_media_field_widget_settings_summary_alter()
  2. 8.2 lightning_media.module \lightning_media_field_widget_settings_summary_alter()
  3. 8.3 lightning_media.module \lightning_media_field_widget_settings_summary_alter()

Implements hook_field_widget_settings_summary_alter().

File

./lightning_media.module, line 53
Core media asset support for Lightning.

Code

function lightning_media_field_widget_settings_summary_alter(array &$summary, array $context) {
  if ($context['widget'] instanceof ImageWidget) {
    ImageWidgetHelper::summarize($context['widget'], $summary);
  }
}