function MediaLibraryTestHooks::fieldWidgetInfoAlter

Implements hook_field_widget_info_alter().

File

core/modules/media_library/tests/modules/media_library_test/src/Hook/MediaLibraryTestHooks.php, line 57

Class

MediaLibraryTestHooks
Hook implementations for media_library_test.

Namespace

Drupal\media_library_test\Hook

Code

public function fieldWidgetInfoAlter(array &$info) {
    $info['media_library_widget']['field_types'][] = 'entity_reference_subclass';
}

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