1. 8.2.x core/modules/migrate_drupal/src/Annotation/MigrateCckField.php MigrateCckField
  2. 8.0.x core/modules/migrate_drupal/src/Annotation/MigrateCckField.php MigrateCckField
  3. 8.1.x core/modules/migrate_drupal/src/Annotation/MigrateCckField.php MigrateCckField
  4. 8.3.x core/modules/migrate_drupal/src/Annotation/MigrateCckField.php MigrateCckField

Defines a cckfield plugin annotation object.

cckfield plugins are variously responsible for handling the migration of CCK fields from Drupal 6 to Drupal 8, and Field API fields from Drupal 7 to Drupal 8. They are allowed to alter CCK-related migrations when migrations are being generated, and can compute destination field types for individual fields during the actual migration process.

Plugin Namespace: Plugin\migrate\cckfield

Hierarchy

Expanded class hierarchy of MigrateCckField

Related topics

1 string reference to 'MigrateCckField'
migrate_drupal.services.yml in core/modules/migrate_drupal/migrate_drupal.services.yml
core/modules/migrate_drupal/migrate_drupal.services.yml
8 classes are annotated with MigrateCckField
D6FileField in core/modules/migrate_drupal/tests/modules/migrate_cckfield_plugin_manager_test/src/Plugin/migrate/cckfield/D6FileField.php
Plugin annotation @MigrateCckField( id = "d6_file", core = {6}, type_map = { "file" = "file" } )
D6NoCoreVersionSpecified in core/modules/migrate_drupal/tests/modules/migrate_cckfield_plugin_manager_test/src/Plugin/migrate/cckfield/D6NoCoreVersionSpecified.php
Plugin annotation @MigrateCckField( id = "d6_no_core_version_specified" )
FileField in core/modules/file/src/Plugin/migrate/cckfield/d6/FileField.php
Plugin annotation @MigrateCckField( id = "filefield", core = {6} )
FileField in core/modules/file/src/Plugin/migrate/cckfield/d7/FileField.php
Plugin annotation @MigrateCckField( id = "file", core = {7} )
ImageField in core/modules/file/src/Plugin/migrate/cckfield/d7/ImageField.php
Plugin annotation @MigrateCckField( id = "image", core = {7} )

... See full list

File

core/modules/migrate_drupal/src/Annotation/MigrateCckField.php, line 20

Namespace

Drupal\migrate_drupal\Annotation
View source
class MigrateCckField extends Plugin {

  /**
   * @inheritdoc
   */
  public function __construct($values) {
    parent::__construct($values);
    // Provide default value for core property, in case it's missing.
    if (empty($this->definition['core'])) {
      $this->definition['core'] = [6];
    }
  }

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

  /**
   * Map of D6 and D7 field types to D8 field type plugin IDs.
   *
   * @var string[]
   */
  public $type_map = [];

  /**
   * The Drupal core version(s) this plugin applies to.
   *
   * @var int[]
   */
  public $core = [];

}

Members

Contains filters are case sensitive
Namesort descending Modifiers Type Description
MigrateCckField::$core public property The Drupal core version(s) this plugin applies to.
MigrateCckField::$id public property The plugin ID.
MigrateCckField::$type_map public property Map of D6 and D7 field types to D8 field type plugin IDs.
MigrateCckField::__construct public function @inheritdoc Overrides Plugin::__construct
Plugin::$definition protected property The plugin definition read from the class annotation.
Plugin::get public function Gets the value of an annotation. Overrides AnnotationInterface::get
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