function MediaLibraryTestHooks::fieldWidgetInfoAlter
Same name and namespace in other branches
- 11.x core/modules/media_library/tests/modules/media_library_test/src/Hook/MediaLibraryTestHooks.php \Drupal\media_library_test\Hook\MediaLibraryTestHooks::fieldWidgetInfoAlter()
Implements hook_field_widget_info_alter().
Attributes
#[Hook('field_widget_info_alter')]
File
-
core/
modules/ media_library/ tests/ modules/ media_library_test/ src/ Hook/ MediaLibraryTestHooks.php, line 58
Class
- MediaLibraryTestHooks
- Hook implementations for media_library_test.
Namespace
Drupal\media_library_test\HookCode
public function fieldWidgetInfoAlter(array &$info) : void {
$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.