You are here

interface MediaUploaderInterface in Gutenberg 8

Same name and namespace in other branches
  1. 8.2 src/MediaUploaderInterface.php \Drupal\gutenberg\MediaUploaderInterface

Provides media upload for Gutenberg editor.

@package Drupal\gutenberg

Hierarchy

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\gutenberg
View source
interface MediaUploaderInterface {

  /**
   * Upload media to the filesystem.
   *
   * @param \Symfony\Component\HttpFoundation\File\UploadedFile $uploaded_file
   *   Uploaded file instance.
   * @param \Drupal\editor\Entity\Editor $editor
   *   Editor entity.
   *
   * @return \Drupal\file\Entity\File|null
   *   File entity or null on failure.
   */
  public function upload(UploadedFile $uploaded_file, Editor $editor);

}

Members

Namesort descending Modifiers Type Description Overrides
MediaUploaderInterface::upload public function Upload media to the filesystem. 1