interface MediaTypePersistenceManagerInterface in Gutenberg 8.2
Same name and namespace in other branches
- 8 src/Persistence/MediaTypePersistenceManagerInterface.php \Drupal\gutenberg\Persistence\MediaTypePersistenceManagerInterface
Handles media type persistence process.
@package Drupal\gutenberg\Persistence
Hierarchy
- interface \Drupal\gutenberg\Persistence\MediaTypePersistenceManagerInterface
Expanded class hierarchy of MediaTypePersistenceManagerInterface
All classes that implement MediaTypePersistenceManagerInterface
File
- src/
Persistence/ MediaTypePersistenceManagerInterface.php, line 12
Namespace
Drupal\gutenberg\PersistenceView source
interface MediaTypePersistenceManagerInterface {
/**
* Perform saving process of an uploaded file as media entity.
*
* @param string $media_type
* Media type machine name.
* @param \Drupal\file\Entity\File $file_entity
* File entity instance.
*
* @return \Drupal\media\Entity\Media|null
* Created media type or null if failed.
*
* @throws \Exception
*/
public function save(string $media_type, File $file_entity);
/**
* Returns the media source file settings.
*
* @param string $media_type
* Media type machine name.
*
* @return array
* List of media file settings.
*/
public function getFileSettings(string $media_type);
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
MediaTypePersistenceManagerInterface:: |
public | function | Returns the media source file settings. | 1 |
MediaTypePersistenceManagerInterface:: |
public | function | Perform saving process of an uploaded file as media entity. | 1 |