You are here

media_library_form_overwrite_test.module in Drupal 9

Contains.

File

core/modules/media_library/tests/modules/media_library_form_overwrite_test/media_library_form_overwrite_test.module
View source
<?php

/**
 * @file
 * Contains.
 */
use Drupal\media_library_form_overwrite_test\Form\TestAddForm;
function media_library_form_overwrite_test_media_source_info_alter(array &$sources) {
  $sources['image']['forms']['media_library_add'] = TestAddForm::class;
}