function MigrateField::__construct
Same name in this branch
- 11.x core/modules/migrate_drupal/src/Annotation/MigrateField.php \Drupal\migrate_drupal\Annotation\MigrateField::__construct()
Same name in other branches
- 9 core/modules/migrate_drupal/src/Annotation/MigrateField.php \Drupal\migrate_drupal\Annotation\MigrateField::__construct()
- 8.9.x core/modules/migrate_drupal/src/Annotation/MigrateField.php \Drupal\migrate_drupal\Annotation\MigrateField::__construct()
- 10 core/modules/migrate_drupal/src/Annotation/MigrateField.php \Drupal\migrate_drupal\Annotation\MigrateField::__construct()
- 10 core/modules/migrate_drupal/src/Attribute/MigrateField.php \Drupal\migrate_drupal\Attribute\MigrateField::__construct()
Constructs a migrate field attribute object.
Parameters
string $id: A unique identifier for the field plugin.
int[] $core: (optional) The Drupal core version(s) this plugin applies to.
int $weight: (optional) The weight of this plugin relative to other plugins servicing the same field type and core version. The lowest weighted applicable plugin will be used for each field.
string[] $type_map: (optional) Map of D6 and D7 field types to D8+ field type plugin IDs.
string|null $source_module: (optional) Identifies the system providing the data the field plugin will read. The source_module is expected to be the name of a Drupal module that must be installed in the source database.
string|null $destination_module: (optional) Identifies the system handling the data the destination plugin will write. The destination_module is expected to be the name of a Drupal module on the destination site that must be installed.
class-string|null $deriver: (optional) The deriver class.
Overrides Plugin::__construct
File
-
core/
modules/ migrate_drupal/ src/ Attribute/ MigrateField.php, line 64
Class
- MigrateField
- Defines a field plugin attribute object.
Namespace
Drupal\migrate_drupal\AttributeCode
public function __construct(string $id, array $core = [
6,
], int $weight = 0, array $type_map = [], ?string $source_module = NULL, ?string $destination_module = NULL, ?string $deriver = NULL) {
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.