interface MigrateFieldPluginManagerInterface

Same name in other branches
  1. 9 core/modules/migrate_drupal/src/Plugin/MigrateFieldPluginManagerInterface.php \Drupal\migrate_drupal\Plugin\MigrateFieldPluginManagerInterface
  2. 8.9.x core/modules/migrate_drupal/src/Plugin/MigrateFieldPluginManagerInterface.php \Drupal\migrate_drupal\Plugin\MigrateFieldPluginManagerInterface
  3. 10 core/modules/migrate_drupal/src/Plugin/MigrateFieldPluginManagerInterface.php \Drupal\migrate_drupal\Plugin\MigrateFieldPluginManagerInterface

Hierarchy

Expanded class hierarchy of MigrateFieldPluginManagerInterface

All classes that implement MigrateFieldPluginManagerInterface

8 files declare their use of MigrateFieldPluginManagerInterface
FieldDiscovery.php in core/modules/migrate_drupal/src/FieldDiscovery.php
FieldDiscoveryTest.php in core/modules/migrate_drupal/tests/src/Unit/FieldDiscoveryTest.php
FieldDiscoveryTestClass.php in core/modules/migrate_drupal/tests/modules/field_discovery_test/src/FieldDiscoveryTestClass.php
FieldType.php in core/modules/field/src/Plugin/migrate/process/FieldType.php
MigrationState.php in core/modules/migrate_drupal/src/MigrationState.php

... See full list

File

core/modules/migrate_drupal/src/Plugin/MigrateFieldPluginManagerInterface.php, line 8

Namespace

Drupal\migrate_drupal\Plugin
View source
interface MigrateFieldPluginManagerInterface extends MigratePluginManagerInterface {
    
    /**
     * Get the plugin ID from the field type.
     *
     * @param string $field_type
     *   The field type being migrated.
     * @param array $configuration
     *   (optional) An array of configuration relevant to the plugin instance.
     * @param \Drupal\migrate\Plugin\MigrationInterface|null $migration
     *   (optional) The current migration instance.
     *
     * @return string
     *   The ID of the plugin for the field_type if available.
     *
     * @throws \Drupal\Component\Plugin\Exception\PluginNotFoundException
     *   If the plugin cannot be determined, such as if the field type is invalid.
     */
    public function getPluginIdFromFieldType($field_type, array $configuration = [], ?MigrationInterface $migration = NULL);

}

Members

Title Sort descending Modifiers Object type Summary
MigrateFieldPluginManagerInterface::getPluginIdFromFieldType public function Get the plugin ID from the field type.
MigratePluginManagerInterface::createInstance public function Creates a pre-configured instance of a migration plugin.

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