You are here

interface MediaSelectionProcessorInterface in Gutenberg 8

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

Interface MediaSelectionProcessorInterface.

@package Drupal\gutenberg\MediaSelectionProcessor

Hierarchy

Expanded class hierarchy of MediaSelectionProcessorInterface

All classes that implement MediaSelectionProcessorInterface

File

src/MediaSelectionProcessor/MediaSelectionProcessorInterface.php, line 10

Namespace

Drupal\gutenberg\MediaSelectionProcessor
View source
interface MediaSelectionProcessorInterface {

  /**
   * Process data and get array of created media entities.
   *
   * @param array $data
   *   Array of data to process.
   *
   * @return \Drupal\media\MediaInterface[]
   *   The list of media entities.
   */
  public function process(array $data);

}

Members

Namesort descending Modifiers Type Description Overrides
MediaSelectionProcessorInterface::process public function Process data and get array of created media entities. 1