function media_library_form_overwrite_test_media_source_info_alter

Same name in other branches
  1. 8.9.x core/modules/media_library/tests/modules/media_library_form_overwrite_test/media_library_form_overwrite_test.module \media_library_form_overwrite_test_media_source_info_alter()
  2. 10 core/modules/media_library/tests/modules/media_library_form_overwrite_test/media_library_form_overwrite_test.module \media_library_form_overwrite_test_media_source_info_alter()
  3. 11.x core/modules/media_library/tests/modules/media_library_form_overwrite_test/media_library_form_overwrite_test.module \media_library_form_overwrite_test_media_source_info_alter()

File

core/modules/media_library/tests/modules/media_library_form_overwrite_test/media_library_form_overwrite_test.module, line 10

Code

function media_library_form_overwrite_test_media_source_info_alter(array &$sources) {
    $sources['image']['forms']['media_library_add'] = TestAddForm::class;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.