media_library_form_overwrite_test.module

Same filename in other branches
  1. 9 core/modules/media_library/tests/modules/media_library_form_overwrite_test/media_library_form_overwrite_test.module
  2. 8.9.x core/modules/media_library/tests/modules/media_library_form_overwrite_test/media_library_form_overwrite_test.module
  3. 11.x core/modules/media_library/tests/modules/media_library_form_overwrite_test/media_library_form_overwrite_test.module

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;
}

Functions


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