interface FieldDiscoveryInterface (View source)

Provides field discovery for Drupal 6 & 7 migrations.

Constants

DRUPAL_6

DRUPAL_7

Methods

addAllFieldProcesses(MigrationInterface $migration)

Adds the field processes to a migration.

addEntityFieldProcesses(MigrationInterface $migration, string $entity_type_id)

Adds the field processes for an entity to a migration.

addBundleFieldProcesses(MigrationInterface $migration, string $entity_type_id, string $bundle)

Adds the field processes for a bundle to a migration.

Details

addAllFieldProcesses(MigrationInterface $migration)

internal  
 

Adds the field processes to a migration.

This method is used in field migrations to execute the migration process alter method specified by the 'field_plugin_method' key of the migration for all field plugins applicable to this Drupal to Drupal migration. This method is used internally for field, field instance, widget, and formatter migrations to allow field plugins to alter the process for these migrations.

Parameters

MigrationInterface $migration

The migration to add process plugins to.

Exceptions

InvalidArgumentException

addEntityFieldProcesses(MigrationInterface $migration, string $entity_type_id)

Adds the field processes for an entity to a migration.

This method is used in field migrations to execute the migration process alter method specified by the 'field_plugin_method' key of the migration for all field plugins applicable to this Drupal to Drupal migration. This method is used internally for field, field instance, widget, and formatter migrations to allow field plugins to alter the process for these migrations.

Parameters

MigrationInterface $migration

The migration to add processes to.

string $entity_type_id

The legacy entity type to add processes for.

Exceptions

InvalidArgumentException

addBundleFieldProcesses(MigrationInterface $migration, string $entity_type_id, string $bundle)

Adds the field processes for a bundle to a migration.

Parameters

MigrationInterface $migration

The migration to add processes to.

string $entity_type_id

The legacy entity type to add processes for.

string $bundle

The legacy bundle (or content_type) to add processes for.

Exceptions

InvalidArgumentException