You are here

class FileEntityDealer in Media Migration 8

Defines FileEntityDealer annotation object.

Plugin Namespace: Plugin\media_migration\file_entity.

For a working example, see \Drupal\media_migration\Plugin\media_migration\file_entity\Image.

Hierarchy

Expanded class hierarchy of FileEntityDealer

See also

\Drupal\media_migration\FileEntityDealerManager

\Drupal\media_migration\FileEntityDealerPluginInterface

\Drupal\media_migration\FileEntityDealerBase

Plugin API

1 file declares its use of FileEntityDealer
FileEntityDealerManager.php in src/FileEntityDealerManager.php
7 classes are annotated with FileEntityDealer
Audio in src/Plugin/media_migration/file_entity/Audio.php
Audio media migration plugin for local audio media.
Document in src/Plugin/media_migration/file_entity/Document.php
Document media migration plugin for local document media entities.
Fallback in src/Plugin/media_migration/file_entity/Fallback.php
Fallback plugin for unknown (custom) file entity types.
Image in src/Plugin/media_migration/file_entity/Image.php
Image media migration plugin for local image media entities.
Video in src/Plugin/media_migration/file_entity/Video.php
Video media migration plugin for local video media entities.

... See full list

File

src/Annotation/FileEntityDealer.php, line 22

Namespace

Drupal\media_migration\Annotation
View source
class FileEntityDealer extends Plugin {

  /**
   * The plugin ID.
   *
   * @var string
   */
  public $id;

  /**
   * The file entity types the plugin applies to.
   *
   * @var string[]
   */
  public $types;

  /**
   * The schemes the plugin applies to.
   *
   * Optional.
   *
   * @var string[]
   */
  public $schemes = [];

  /**
   * The ID of the destination media type's source plugin.
   *
   * Optional.
   *
   * @var string
   */
  public $destination_media_source_plugin_id = '';

  /**
   * The ID of the destination media type's base ID.
   *
   * Optional.
   *
   * @var string
   */
  public $destination_media_type_id_base = '';

}

Members

Namesort descending Modifiers Type Description Overrides
FileEntityDealer::$destination_media_source_plugin_id public property The ID of the destination media type's source plugin.
FileEntityDealer::$destination_media_type_id_base public property The ID of the destination media type's base ID.
FileEntityDealer::$id public property The plugin ID.
FileEntityDealer::$schemes public property The schemes the plugin applies to.
FileEntityDealer::$types public property The file entity types 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