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

Namespace

Drupal\migrate_drupal\Annotation

File

core/modules/migrate_drupal/src/Annotation/MigrateCckField.php
View source
  1. <?php
  2. namespace Drupal\migrate_drupal\Annotation;
  3. use Drupal\Component\Annotation\Plugin;
  4. /**
  5. * Defines a cckfield plugin annotation object.
  6. *
  7. * cckfield plugins are variously responsible for handling the migration of
  8. * CCK fields from Drupal 6 to Drupal 8, and Field API fields from Drupal 7
  9. * to Drupal 8. They are allowed to alter CCK-related migrations when migrations
  10. * are being generated, and can compute destination field types for individual
  11. * fields during the actual migration process.
  12. *
  13. * Plugin Namespace: Plugin\migrate\cckfield
  14. *
  15. * @Annotation
  16. */
  17. class MigrateCckField extends Plugin {
  18. /**
  19. * @inheritdoc
  20. */
  21. public function __construct($values) {
  22. parent::__construct($values);
  23. // Provide default value for core property, in case it's missing.
  24. if (empty($this->definition['core'])) {
  25. $this->definition['core'] = [6];
  26. }
  27. }
  28. /**
  29. * The plugin ID.
  30. *
  31. * @var string
  32. */
  33. public $id;
  34. /**
  35. * Map of D6 and D7 field types to D8 field type plugin IDs.
  36. *
  37. * @var string[]
  38. */
  39. public $type_map = [];
  40. /**
  41. * The Drupal core version(s) this plugin applies to.
  42. *
  43. * @var int[]
  44. */
  45. public $core = [];
  46. }

Classes

Namesort descending Description
MigrateCckField Defines a cckfield plugin annotation object.