function claro_form_media_library_add_form_upload_alter in Drupal 8
Same name and namespace in other branches
- 9 core/themes/claro/claro.theme \claro_form_media_library_add_form_upload_alter()
Implements hook_form_FORM_ID_alter().
File
- core/
themes/ claro/ claro.theme, line 1288 - Functions to support theming in the Claro theme.
Code
function claro_form_media_library_add_form_upload_alter(array &$form, FormStateInterface $form_state) {
$form['#attributes']['class'][] = 'media-library-add-form--upload';
if (isset($form['container'])) {
$form['container']['#attributes']['class'][] = 'media-library-add-form__input-wrapper';
}
}