Mercurial > hg > cmmr2012-drupal-site
comparison core/modules/migrate_drupal/src/Plugin/MigrateFieldInterface.php @ 4:a9cd425dd02b
Update, including to Drupal core 8.6.10
author | Chris Cannam |
---|---|
date | Thu, 28 Feb 2019 13:11:55 +0000 |
parents | c75dbcec494b |
children |
comparison
equal
deleted
inserted
replaced
3:307d7a7fd348 | 4:a9cd425dd02b |
---|---|
15 * Apply any custom processing to the field migration. | 15 * Apply any custom processing to the field migration. |
16 * | 16 * |
17 * @param \Drupal\migrate\Plugin\MigrationInterface $migration | 17 * @param \Drupal\migrate\Plugin\MigrationInterface $migration |
18 * The migration entity. | 18 * The migration entity. |
19 */ | 19 */ |
20 public function processField(MigrationInterface $migration); | 20 public function alterFieldMigration(MigrationInterface $migration); |
21 | 21 |
22 /** | 22 /** |
23 * Apply any custom processing to the field instance migration. | 23 * Apply any custom processing to the field instance migration. |
24 * | 24 * |
25 * @param \Drupal\migrate\Plugin\MigrationInterface $migration | 25 * @param \Drupal\migrate\Plugin\MigrationInterface $migration |
26 * The migration entity. | 26 * The migration entity. |
27 */ | 27 */ |
28 public function processFieldInstance(MigrationInterface $migration); | 28 public function alterFieldInstanceMigration(MigrationInterface $migration); |
29 | 29 |
30 /** | 30 /** |
31 * Apply any custom processing to the field widget migration. | 31 * Apply any custom processing to the field widget migration. |
32 * | 32 * |
33 * @param \Drupal\migrate\Plugin\MigrationInterface $migration | 33 * @param \Drupal\migrate\Plugin\MigrationInterface $migration |
34 * The migration entity. | 34 * The migration entity. |
35 */ | 35 */ |
36 public function processFieldWidget(MigrationInterface $migration); | 36 public function alterFieldWidgetMigration(MigrationInterface $migration); |
37 | 37 |
38 /** | 38 /** |
39 * Apply any custom processing to the field formatter migration. | 39 * Apply any custom processing to the field formatter migration. |
40 * | 40 * |
41 * @param \Drupal\migrate\Plugin\MigrationInterface $migration | 41 * @param \Drupal\migrate\Plugin\MigrationInterface $migration |
42 * The migration entity. | 42 * The migration entity. |
43 */ | 43 */ |
44 public function processFieldFormatter(MigrationInterface $migration); | 44 public function alterFieldFormatterMigration(MigrationInterface $migration); |
45 | 45 |
46 /** | 46 /** |
47 * Get the field formatter type from the source. | 47 * Get the field formatter type from the source. |
48 * | 48 * |
49 * @param \Drupal\migrate\Row $row | 49 * @param \Drupal\migrate\Row $row |
55 public function getFieldFormatterType(Row $row); | 55 public function getFieldFormatterType(Row $row); |
56 | 56 |
57 /** | 57 /** |
58 * Get a map between D6 formatters and D8 formatters for this field type. | 58 * Get a map between D6 formatters and D8 formatters for this field type. |
59 * | 59 * |
60 * This is used by static::processFieldFormatter() in the base class. | 60 * This is used by static::alterFieldFormatterMigration() in the base class. |
61 * | 61 * |
62 * @return array | 62 * @return array |
63 * The keys are D6 formatters and the values are D8 formatters. | 63 * The keys are D6 formatters and the values are D8 formatters. |
64 */ | 64 */ |
65 public function getFieldFormatterMap(); | 65 public function getFieldFormatterMap(); |
91 * @param string $field_name | 91 * @param string $field_name |
92 * The field name we're processing the value for. | 92 * The field name we're processing the value for. |
93 * @param array $data | 93 * @param array $data |
94 * The array of field data from FieldValues::fieldData(). | 94 * The array of field data from FieldValues::fieldData(). |
95 */ | 95 */ |
96 public function processFieldValues(MigrationInterface $migration, $field_name, $data); | 96 public function defineValueProcessPipeline(MigrationInterface $migration, $field_name, $data); |
97 | 97 |
98 /** | 98 /** |
99 * Computes the destination type of a migrated field. | 99 * Computes the destination type of a migrated field. |
100 * | 100 * |
101 * @param \Drupal\migrate\Row $row | 101 * @param \Drupal\migrate\Row $row |