You are here

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

Expanded class hierarchy of FileDealer

See also

\Drupal\media_migration\FileDealerManager

\Drupal\media_migration\FileDealerPluginInterface

\Drupal\media_migration\FileDealerBase

Plugin API

1 file declares its use of FileDealer
FileDealerManager.php in src/FileDealerManager.php
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\Annotation
View 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

Namesort descending Modifiers Type Description Overrides
FileDealer::$destination_media_source_plugin_id public property The ID of the destination media type's source plugin.
FileDealer::$destination_media_type_id_base public property The destination media type's base ID.
FileDealer::$id public property The plugin ID.
FileDealer::$mimes public property The main MIME typed the plugin applies to.
FileDealer::$schemes public property The schemes the plugin applies to.
Plugin::$definition protected property The plugin definition read from the class annotation. 1
Plugin::get public function Gets the value of an annotation. Overrides AnnotationInterface::get 5
Plugin::getClass public function Gets the class of the annotated class. Overrides AnnotationInterface::getClass
Plugin::getId public function Gets the unique ID for this annotated class. Overrides AnnotationInterface::getId
Plugin::getProvider public function Gets the name of the provider of the annotated class. Overrides AnnotationInterface::getProvider
Plugin::parse protected function Parses an annotation into its definition.
Plugin::setClass public function Sets the class of the annotated class. Overrides AnnotationInterface::setClass
Plugin::setProvider public function Sets the name of the provider of the annotated class. Overrides AnnotationInterface::setProvider
Plugin::__construct public function Constructs a Plugin object. 2