interface FieldDiscoveryInterface
Same name in other branches
- 9 core/modules/migrate_drupal/src/FieldDiscoveryInterface.php \Drupal\migrate_drupal\FieldDiscoveryInterface
- 8.9.x core/modules/migrate_drupal/src/FieldDiscoveryInterface.php \Drupal\migrate_drupal\FieldDiscoveryInterface
- 10 core/modules/migrate_drupal/src/FieldDiscoveryInterface.php \Drupal\migrate_drupal\FieldDiscoveryInterface
Provides field discovery for Drupal 6 & 7 migrations.
Hierarchy
- interface \Drupal\migrate_drupal\FieldDiscoveryInterface
Expanded class hierarchy of FieldDiscoveryInterface
All classes that implement FieldDiscoveryInterface
8 files declare their use of FieldDiscoveryInterface
- D6NodeDeriver.php in core/
modules/ node/ src/ Plugin/ migrate/ D6NodeDeriver.php - D7NodeDeriver.php in core/
modules/ node/ src/ Plugin/ migrate/ D7NodeDeriver.php - D7TaxonomyTermDeriver.php in core/
modules/ taxonomy/ src/ Plugin/ migrate/ D7TaxonomyTermDeriver.php - FieldDiscoveryTest.php in core/
modules/ migrate_drupal/ tests/ src/ Unit/ FieldDiscoveryTest.php - FieldDiscoveryTest.php in core/
modules/ migrate_drupal/ tests/ src/ Kernel/ d6/ FieldDiscoveryTest.php
File
-
core/
modules/ migrate_drupal/ src/ FieldDiscoveryInterface.php, line 10
Namespace
Drupal\migrate_drupalView source
interface FieldDiscoveryInterface {
const DRUPAL_6 = '6';
const DRUPAL_7 = '7';
/**
* 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.
*
* @param \Drupal\migrate\Plugin\MigrationInterface $migration
* The migration to add process plugins to.
*
* @throws \InvalidArgumentException
*
* @internal
*/
public function addAllFieldProcesses(MigrationInterface $migration);
/**
* 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.
*
* @param \Drupal\migrate\Plugin\MigrationInterface $migration
* The migration to add processes to.
* @param string $entity_type_id
* The legacy entity type to add processes for.
*
* @throws \InvalidArgumentException
*/
public function addEntityFieldProcesses(MigrationInterface $migration, $entity_type_id);
/**
* Adds the field processes for a bundle to a migration.
*
* @param \Drupal\migrate\Plugin\MigrationInterface $migration
* The migration to add processes to.
* @param string $entity_type_id
* The legacy entity type to add processes for.
* @param string $bundle
* The legacy bundle (or content_type) to add processes for.
*
* @throws \InvalidArgumentException
*/
public function addBundleFieldProcesses(MigrationInterface $migration, $entity_type_id, $bundle);
}
Members
Title Sort descending | Modifiers | Object type | Summary |
---|---|---|---|
FieldDiscoveryInterface::addAllFieldProcesses | public | function | Adds the field processes to a migration. |
FieldDiscoveryInterface::addBundleFieldProcesses | public | function | Adds the field processes for a bundle to a migration. |
FieldDiscoveryInterface::addEntityFieldProcesses | public | function | Adds the field processes for an entity to a migration. |
FieldDiscoveryInterface::DRUPAL_6 | constant | ||
FieldDiscoveryInterface::DRUPAL_7 | constant |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.