You are here

MediaSelectionProcessorInterface.php in Gutenberg 8

Same filename and directory in other branches
  1. 8.2 src/MediaSelectionProcessor/MediaSelectionProcessorInterface.php

File

src/MediaSelectionProcessor/MediaSelectionProcessorInterface.php
View source
<?php

namespace Drupal\gutenberg\MediaSelectionProcessor;


/**
 * Interface MediaSelectionProcessorInterface.
 *
 * @package Drupal\gutenberg\MediaSelectionProcessor
 */
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);

}

Interfaces

Namesort descending Description
MediaSelectionProcessorInterface Interface MediaSelectionProcessorInterface.