D6FileField.php

Same filename in this branch
  1. 8.9.x core/modules/migrate_drupal/tests/modules/migrate_field_plugin_manager_test/src/Plugin/migrate/field/D6FileField.php
Same filename in other branches
  1. 9 core/modules/migrate_drupal/tests/modules/migrate_field_plugin_manager_test/src/Plugin/migrate/field/D6FileField.php
  2. 10 core/modules/migrate_drupal/tests/modules/migrate_field_plugin_manager_test/src/Plugin/migrate/field/D6FileField.php
  3. 11.x core/modules/migrate_drupal/tests/modules/migrate_field_plugin_manager_test/src/Plugin/migrate/field/D6FileField.php

Namespace

Drupal\migrate_cckfield_plugin_manager_test\Plugin\migrate\cckfield

File

core/modules/migrate_drupal/tests/modules/migrate_cckfield_plugin_manager_test/src/Plugin/migrate/cckfield/D6FileField.php

View source
<?php

namespace Drupal\migrate_cckfield_plugin_manager_test\Plugin\migrate\cckfield;

use Drupal\migrate_drupal\Plugin\migrate\cckfield\CckFieldPluginBase;
use Drupal\migrate\Plugin\MigrationInterface;

/**
 * @MigrateCckField(
 *   id = "d6_file",
 *   core = {6},
 *   type_map = {
 *     "file" = "file"
 *   },
 *   source_module = "foo",
 *   destination_module = "bar"
 * )
 */
class D6FileField extends CckFieldPluginBase {
    
    /**
     * {@inheritdoc}
     */
    public function processCckFieldValues(MigrationInterface $migration, $field_name, $data) {
        $migration->setProcessOfProperty($field_name, [
            'class' => static::class,
        ]);
    }

}

Classes

Title Deprecated Summary
D6FileField Plugin annotation @MigrateCckField( id = "d6_file", core = {6}, type_map = { "file" = "file" }, source_module = "foo", destination_module = "bar" )

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.