Security update for Core, with self-updated composer
[yaffs-website] / web / core / modules / migrate_drupal / src / Plugin / migrate / cckfield / CckFieldPluginBase.php
1 <?php
2
3 namespace Drupal\migrate_drupal\Plugin\migrate\cckfield;
4
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);
6
7 use Drupal\migrate\Plugin\MigrationInterface;
8 use Drupal\migrate_drupal\Plugin\migrate\field\FieldPluginBase;
9 use Drupal\migrate_drupal\Plugin\MigrateCckFieldInterface;
10
11 /**
12  * The base class for all field plugins.
13  *
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.
16  *
17  * @see https://www.drupal.org/node/2751897
18  *
19  * @ingroup migration
20  */
21 abstract class CckFieldPluginBase extends FieldPluginBase implements MigrateCckFieldInterface {
22
23   /**
24    * Apply any custom processing to the field bundle migrations.
25    *
26    * @param \Drupal\migrate\Plugin\MigrationInterface $migration
27    *   The migration entity.
28    * @param string $field_name
29    *   The field name we're processing the value for.
30    * @param array $data
31    *   The array of field data from FieldValues::fieldData().
32    */
33   public function processFieldValues(MigrationInterface $migration, $field_name, $data) {
34     // Provide a bridge to the old method declared on the interface and now an
35     // abstract method in this class.
36     return $this->processCckFieldValues($migration, $field_name, $data);
37   }
38
39   /**
40    * Apply any custom processing to the field bundle migrations.
41    *
42    * @param \Drupal\migrate\Plugin\MigrationInterface $migration
43    *   The migration entity.
44    * @param string $field_name
45    *   The field name we're processing the value for.
46    * @param array $data
47    *   The array of field data from FieldValues::fieldData().
48    */
49   abstract public function processCckFieldValues(MigrationInterface $migration, $field_name, $data);
50
51 }