interface MediaUploaderInterface in Gutenberg 8.2
Same name and namespace in other branches
- 8 src/MediaUploaderInterface.php \Drupal\gutenberg\MediaUploaderInterface
Provides media upload for Gutenberg editor.
@package Drupal\gutenberg
Hierarchy
- interface \Drupal\gutenberg\MediaUploaderInterface
Expanded class hierarchy of MediaUploaderInterface
All classes that implement MediaUploaderInterface
1 file declares its use of MediaUploaderInterface
- MediaService.php in src/
Service/ MediaService.php
File
- src/
MediaUploaderInterface.php, line 13
Namespace
Drupal\gutenbergView source
interface MediaUploaderInterface {
/**
* Upload media to the filesystem.
*
* @param string $form_field_name
* A string that is the associative array key of the upload form element in
* the form array.
* @param \Symfony\Component\HttpFoundation\File\UploadedFile $uploaded_file
* Uploaded file instance.
* @param \Drupal\editor\Entity\Editor $editor
* Editor entity.
* @param array $file_settings
* A list of file configurations. e.g. 'file_extensions' etc.
*
* @return \Drupal\file\Entity\File|null
* File entity or null on failure.
*/
public function upload(string $form_field_name, UploadedFile $uploaded_file, Editor $editor, array $file_settings = []);
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
MediaUploaderInterface:: |
public | function | Upload media to the filesystem. | 1 |