You are here

function lightning_media_field_widget_form_alter in Lightning Media 8.3

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

Implements hook_field_widget_form_alter().

File

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

Code

function lightning_media_field_widget_form_alter(array &$element, FormStateInterface $form_state, array $context) {
  if ($context['widget'] instanceof ImageWidget) {
    ImageWidgetHelper::alter($element, $context['widget']);
  }
}