You are here

interface MigrateCckFieldInterface in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/migrate_drupal/src/Plugin/MigrateCckFieldInterface.php \Drupal\migrate_drupal\Plugin\MigrateCckFieldInterface

Provides an interface for all CCK field type plugins.

Hierarchy

Expanded class hierarchy of MigrateCckFieldInterface

All classes that implement MigrateCckFieldInterface

1 file declares its use of MigrateCckFieldInterface
CckFieldPluginBase.php in core/modules/migrate_drupal/src/Plugin/migrate/cckfield/CckFieldPluginBase.php
Contains \Drupal\migrate_drupal\Plugin\migrate\cckfield\CckFieldPluginBase.

File

core/modules/migrate_drupal/src/Plugin/MigrateCckFieldInterface.php, line 17
Contains \Drupal\migrate_drupal\Plugin\MigrateCckFieldInterface.

Namespace

Drupal\migrate_drupal\Plugin
View source
interface MigrateCckFieldInterface extends PluginInspectionInterface {

  /**
   * Apply any custom processing to the field migration.
   *
   * @param \Drupal\migrate\Entity\MigrationInterface $migration
   *   The migration entity.
   */
  public function processField(MigrationInterface $migration);

  /**
   * Apply any custom processing to the field instance migration.
   *
   * @param \Drupal\migrate\Entity\MigrationInterface $migration
   *   The migration entity.
   */
  public function processFieldInstance(MigrationInterface $migration);

  /**
   * Apply any custom processing to the field widget migration.
   *
   * @param \Drupal\migrate\Entity\MigrationInterface $migration
   *   The migration entity.
   */
  public function processFieldWidget(MigrationInterface $migration);

  /**
   * Apply any custom processing to the field formatter migration.
   *
   * @param \Drupal\migrate\Entity\MigrationInterface $migration
   *   The migration entity.
   */
  public function processFieldFormatter(MigrationInterface $migration);

  /**
   * Get a map between D6 formatters and D8 formatters for this field type.
   *
   * This is used by static::processFieldFormatter() in the base class.
   *
   * @return array
   *   The keys are D6 formatters and the values are D8 formatters.
   */
  public function getFieldFormatterMap();

  /**
   * Get a map between D6 and D8 widgets for this field type.
   *
   * @return array
   *   The keys are D6 field widget types and the values D8 widgets.
   */
  public function getFieldWidgetMap();

  /**
   * Apply any custom processing to the cck bundle migrations.
   *
   * @param \Drupal\migrate\Entity\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 CckFieldValues::fieldData().
   */
  public function processCckFieldValues(MigrationInterface $migration, $field_name, $data);

  /**
   * Computes the destination type of a migrated field.
   *
   * @param \Drupal\migrate\Row $row
   *   The field being migrated.
   *
   * @return string
   *   The destination field type.
   */
  public function getFieldType(Row $row);

}

Members

Namesort descending Modifiers Type Description Overrides
MigrateCckFieldInterface::getFieldFormatterMap public function Get a map between D6 formatters and D8 formatters for this field type. 4
MigrateCckFieldInterface::getFieldType public function Computes the destination type of a migrated field. 1
MigrateCckFieldInterface::getFieldWidgetMap public function Get a map between D6 and D8 widgets for this field type. 1
MigrateCckFieldInterface::processCckFieldValues public function Apply any custom processing to the cck bundle migrations. 4
MigrateCckFieldInterface::processField public function Apply any custom processing to the field migration. 1
MigrateCckFieldInterface::processFieldFormatter public function Apply any custom processing to the field formatter migration. 1
MigrateCckFieldInterface::processFieldInstance public function Apply any custom processing to the field instance migration. 1
MigrateCckFieldInterface::processFieldWidget public function Apply any custom processing to the field widget migration. 1
PluginInspectionInterface::getPluginDefinition public function Gets the definition of the plugin implementation. 2
PluginInspectionInterface::getPluginId public function Gets the plugin_id of the plugin instance. 2