media_library_extended-1.x-dev/src/Entity/MediaLibraryPaneInterface.php
src/Entity/MediaLibraryPaneInterface.php
<?php
namespace Drupal\media_library_extended\Entity;
use Drupal\Core\Config\Entity\ConfigEntityInterface;
/**
* Provides an interface for defining Media library pane entities.
*/
interface MediaLibraryPaneInterface extends ConfigEntityInterface {
/**
* Gets the bundle id for media items created through this pane.
*
* @return string
* The media bundle id.
*/
public function getTargetBundle();
/**
* Gets the media library source plugin id for this pane.
*
* @return string
* The media library source plugin id.
*/
public function getSourcePluginId();
/**
* Gets the media library source plugin configuration.
*
* @return array
* The media library source plugin configuration.
*/
public function getSourcePluginConfiguration();
/**
* Gets the media library source plugin for this pane.
*
* @return \Drupal\media_library_extended\Plugin\MediaLibrarySourceInterface
* The media library source plugin id.
*/
public function getPlugin();
/**
* Returns a render array summarizing the configuration of the pane.
*
* @return array
* A render array.
*/
public function getSummary();
}
