Commit 581a3bd7 authored by catch's avatar catch
Browse files

fix: #3628096 Default Admin attaches a library it doesn't define

By: d34dman
By: dcam
(cherry picked from commit ad11ba71)
parent 261d6ff8
Loading
Loading
Loading
Loading
Loading
−1
Changes for core/themes/default_admin/src/Hook/FormHooks.php: 0 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -185,7 +185,6 @@ public function formMediaFormAlter(array &$form, FormStateInterface $form_state)
  #[Hook('form_media_library_add_form_alter')]
  public function formMediaLibraryAddFormAlter(array &$form): void {
    $form['#attributes']['class'][] = 'media-library-add-form';
    $form['#attached']['library'][] = 'default_admin/media_library.theme';

    // If there are unsaved media items, apply styling classes to various parts
    // of the form.