X-Git-Url: http://aleph1.co.uk/gitweb/?a=blobdiff_plain;f=web%2Fcore%2Fmodules%2Fmigrate_drupal%2Fsrc%2FPlugin%2Fmigrate%2Fcckfield%2FCckFieldPluginBase.php;h=80ad6fa50763f7db8846572d0217c08c917e0870;hb=0bf8d09d2542548982e81a441b1f16e75873a04f;hp=79a65a7b733073843f51e4c389b968c74ed70982;hpb=a2bd1bf0c2c1f1a17d188f4dc0726a45494cefae;p=yaffs-website diff --git a/web/core/modules/migrate_drupal/src/Plugin/migrate/cckfield/CckFieldPluginBase.php b/web/core/modules/migrate_drupal/src/Plugin/migrate/cckfield/CckFieldPluginBase.php index 79a65a7b7..80ad6fa50 100644 --- a/web/core/modules/migrate_drupal/src/Plugin/migrate/cckfield/CckFieldPluginBase.php +++ b/web/core/modules/migrate_drupal/src/Plugin/migrate/cckfield/CckFieldPluginBase.php @@ -2,34 +2,28 @@ namespace Drupal\migrate_drupal\Plugin\migrate\cckfield; -@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); +@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); use Drupal\migrate\Plugin\MigrationInterface; use Drupal\migrate_drupal\Plugin\migrate\field\FieldPluginBase; +use Drupal\migrate_drupal\Plugin\MigrateCckFieldInterface; /** * The base class for all field plugins. * - * @deprecated in Drupal 8.3.x, to be removed before Drupal 9.0.x. Use + * @deprecated in Drupal 8.4.x, to be removed before Drupal 9.0.x. Use * \Drupal\migrate_drupal\Plugin\migrate\field\FieldPluginBase instead. * + * @see https://www.drupal.org/node/2751897 + * * @ingroup migration */ -abstract class CckFieldPluginBase extends FieldPluginBase { +abstract class CckFieldPluginBase extends FieldPluginBase implements MigrateCckFieldInterface { /** - * Apply any custom processing to the field bundle migrations. - * - * @param \Drupal\migrate\Plugin\MigrationInterface $migration - * The migration entity. - * @param string $field_name - * The field name we're processing the value for. - * @param array $data - * The array of field data from FieldValues::fieldData(). + * {@inheritdoc} */ - public function processFieldValues(MigrationInterface $migration, $field_name, $data) { + public function defineValueProcessPipeline(MigrationInterface $migration, $field_name, $data) { // Provide a bridge to the old method declared on the interface and now an // abstract method in this class. return $this->processCckFieldValues($migration, $field_name, $data);