Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. FieldDiscoveryInterface.php

interface 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

4 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
FieldMigration.php in core/modules/migrate_drupal/src/Plugin/migrate/FieldMigration.php

File

core/modules/migrate_drupal/src/FieldDiscoveryInterface.php, line 10

Namespace

Drupal\migrate_drupal
View 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

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal