class FileDealer in Media Migration 8
Defines FileDealer annotation object.
Plugin Namespace: Plugin\media_migration\file.
For a working example, see \Drupal\media_migration\Plugin\media_migration\file\Image.
Hierarchy
- class \Drupal\Component\Annotation\Plugin implements AnnotationInterface
- class \Drupal\media_migration\Annotation\FileDealer
Expanded class hierarchy of FileDealer
See also
\Drupal\media_migration\FileDealerManager
\Drupal\media_migration\FileDealerPluginInterface
\Drupal\media_migration\FileDealerBase
1 file declares its use of FileDealer
2 classes are annotated with FileDealer
- Fallback in src/
Plugin/ media_migration/ file/ Fallback.php - General plugin for any kind of file.
- Image in src/
Plugin/ media_migration/ file/ Image.php - Plugin for images.
File
- src/
Annotation/ FileDealer.php, line 22
Namespace
Drupal\media_migration\AnnotationView source
class FileDealer extends Plugin {
/**
* The plugin ID.
*
* @var string
*/
public $id;
/**
* The schemes the plugin applies to.
*
* Optional.
*
* @var string[]
*/
public $schemes = [];
/**
* The main MIME typed the plugin applies to.
*
* Optional.
*
* @var string[]
*/
public $mimes = [];
/**
* The ID of the destination media type's source plugin.
*
* Optional.
*
* @var string
*/
public $destination_media_source_plugin_id = '';
/**
* The destination media type's base ID.
*
* Optional.
*
* @var string
*/
public $destination_media_type_id_base = '';
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
FileDealer:: |
public | property | The ID of the destination media type's source plugin. | |
FileDealer:: |
public | property | The destination media type's base ID. | |
FileDealer:: |
public | property | The plugin ID. | |
FileDealer:: |
public | property | The main MIME typed the plugin applies to. | |
FileDealer:: |
public | property | The schemes the plugin applies to. | |
Plugin:: |
protected | property | The plugin definition read from the class annotation. | 1 |
Plugin:: |
public | function |
Gets the value of an annotation. Overrides AnnotationInterface:: |
5 |
Plugin:: |
public | function |
Gets the class of the annotated class. Overrides AnnotationInterface:: |
|
Plugin:: |
public | function |
Gets the unique ID for this annotated class. Overrides AnnotationInterface:: |
|
Plugin:: |
public | function |
Gets the name of the provider of the annotated class. Overrides AnnotationInterface:: |
|
Plugin:: |
protected | function | Parses an annotation into its definition. | |
Plugin:: |
public | function |
Sets the class of the annotated class. Overrides AnnotationInterface:: |
|
Plugin:: |
public | function |
Sets the name of the provider of the annotated class. Overrides AnnotationInterface:: |
|
Plugin:: |
public | function | Constructs a Plugin object. | 2 |