public function MediaUploaderInterface::upload in Gutenberg 8
Same name and namespace in other branches
- 8.2 src/MediaUploaderInterface.php \Drupal\gutenberg\MediaUploaderInterface::upload()
Upload media to the filesystem.
Parameters
\Symfony\Component\HttpFoundation\File\UploadedFile $uploaded_file: Uploaded file instance.
\Drupal\editor\Entity\Editor $editor: Editor entity.
Return value
\Drupal\file\Entity\File|null File entity or null on failure.
1 method overrides MediaUploaderInterface::upload()
- MediaUploader::upload in src/
MediaUploader.php - Upload media to the filesystem.
File
- src/
MediaUploaderInterface.php, line 26
Class
- MediaUploaderInterface
- Provides media upload for Gutenberg editor.
Namespace
Drupal\gutenbergCode
public function upload(UploadedFile $uploaded_file, Editor $editor);