function thunder_media_inline_entity_form_entity_form_alter in Thunder 8.5
Same name and namespace in other branches
- 8.2 modules/thunder_media/thunder_media.module \thunder_media_inline_entity_form_entity_form_alter()
- 8.3 modules/thunder_media/thunder_media.module \thunder_media_inline_entity_form_entity_form_alter()
- 8.4 modules/thunder_media/thunder_media.module \thunder_media_inline_entity_form_entity_form_alter()
- 6.2.x modules/thunder_media/thunder_media.module \thunder_media_inline_entity_form_entity_form_alter()
- 6.0.x modules/thunder_media/thunder_media.module \thunder_media_inline_entity_form_entity_form_alter()
- 6.1.x modules/thunder_media/thunder_media.module \thunder_media_inline_entity_form_entity_form_alter()
Implements hook_inline_entity_form_entity_form_alter().
File
- modules/
thunder_media/ thunder_media.module, line 128 - Contains media related functions.
Code
function thunder_media_inline_entity_form_entity_form_alter(&$entity_form, FormStateInterface $form_state) {
if (isset($entity_form['field_media_images'])) {
$entity_form['field_media_images']['#attributes']['class'][] = 'media-form__items-widget-container';
}
}