function thunder_media_form_media_gallery_edit_form_alter in Thunder 8.5
Same name and namespace in other branches
- 8.2 modules/thunder_media/thunder_media.module \thunder_media_form_media_gallery_edit_form_alter()
- 8.3 modules/thunder_media/thunder_media.module \thunder_media_form_media_gallery_edit_form_alter()
- 8.4 modules/thunder_media/thunder_media.module \thunder_media_form_media_gallery_edit_form_alter()
- 6.2.x modules/thunder_media/thunder_media.module \thunder_media_form_media_gallery_edit_form_alter()
- 6.0.x modules/thunder_media/thunder_media.module \thunder_media_form_media_gallery_edit_form_alter()
- 6.1.x modules/thunder_media/thunder_media.module \thunder_media_form_media_gallery_edit_form_alter()
Implements hook_form_FORM_ID_alter().
Adds classes to theme media:gallery edit form.
File
- modules/
thunder_media/ thunder_media.module, line 139 - Contains media related functions.
Code
function thunder_media_form_media_gallery_edit_form_alter(&$form, FormStateInterface $form_state) {
if (isset($form['field_media_images'])) {
$form['field_media_images']['#attributes']['class'][] = 'media-form__items-widget-container';
}
}