3 namespace Drupal\migrate_drupal\Plugin\migrate\cckfield;
5 @trigger_error('CckFieldPluginBase is deprecated in Drupal 8.3.x and will be be removed before Drupal 9.0.x. Use \Drupal\migrate_drupal\Plugin\migrate\field\FieldPluginBase instead.', E_USER_DEPRECATED);
7 use Drupal\migrate\Plugin\MigrationInterface;
8 use Drupal\migrate_drupal\Plugin\migrate\field\FieldPluginBase;
9 use Drupal\migrate_drupal\Plugin\MigrateCckFieldInterface;
12 * The base class for all field plugins.
14 * @deprecated in Drupal 8.4.x, to be removed before Drupal 9.0.x. Use
15 * \Drupal\migrate_drupal\Plugin\migrate\field\FieldPluginBase instead.
17 * @see https://www.drupal.org/node/2751897
21 abstract class CckFieldPluginBase extends FieldPluginBase implements MigrateCckFieldInterface {
26 public function defineValueProcessPipeline(MigrationInterface $migration, $field_name, $data) {
27 // Provide a bridge to the old method declared on the interface and now an
28 // abstract method in this class.
29 return $this->processCckFieldValues($migration, $field_name, $data);
33 * Apply any custom processing to the field bundle migrations.
35 * @param \Drupal\migrate\Plugin\MigrationInterface $migration
36 * The migration entity.
37 * @param string $field_name
38 * The field name we're processing the value for.
40 * The array of field data from FieldValues::fieldData().
42 abstract public function processCckFieldValues(MigrationInterface $migration, $field_name, $data);