interface MigrationPluginManagerInterface in Drupal 8
Same name and namespace in other branches
- 9 core/modules/migrate/src/Plugin/MigrationPluginManagerInterface.php \Drupal\migrate\Plugin\MigrationPluginManagerInterface
Migration plugin manager interface.
Hierarchy
- interface \Drupal\Component\Plugin\Discovery\DiscoveryInterface; interface \Drupal\Component\Plugin\Factory\FactoryInterface; interface \Drupal\Component\Plugin\Mapper\MapperInterface
- interface \Drupal\Component\Plugin\PluginManagerInterface
- interface \Drupal\migrate\Plugin\MigrationPluginManagerInterface
- interface \Drupal\Component\Plugin\PluginManagerInterface
Expanded class hierarchy of MigrationPluginManagerInterface
All classes that implement MigrationPluginManagerInterface
16 files declare their use of MigrationPluginManagerInterface
- CredentialForm.php in core/
modules/ migrate_drupal_ui/ src/ Form/ CredentialForm.php - 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 - FieldDiscoveryTestTrait.php in core/
modules/ migrate_drupal/ tests/ src/ Traits/ FieldDiscoveryTestTrait.php
File
- core/
modules/ migrate/ src/ Plugin/ MigrationPluginManagerInterface.php, line 10
Namespace
Drupal\migrate\PluginView source
interface MigrationPluginManagerInterface extends PluginManagerInterface {
/**
* Create pre-configured instance of plugin derivatives.
*
* @param array $id
* Either the plugin ID or the base plugin ID of the plugins being
* instantiated. Also accepts an array of plugin IDs and an empty array to
* load all plugins.
* @param array $configuration
* An array of configuration relevant to the plugin instances. Keyed by the
* plugin ID.
*
* @return \Drupal\migrate\Plugin\MigrationInterface[]
* Fully configured plugin instances.
*
* @throws \Drupal\Component\Plugin\Exception\PluginException
* If an instance cannot be created, such as if the ID is invalid.
*/
public function createInstances($id, array $configuration = []);
/**
* Creates a stub migration plugin from a definition array.
*
* @param array $definition
* The migration definition. If an 'id' key is set then this will be used as
* the migration ID, if not a random ID will be assigned.
*
* @return \Drupal\migrate\Plugin\Migration
* The stub migration.
*/
public function createStubMigration(array $definition);
/**
* Create migrations given a tag.
*
* @param string $tag
* A migration tag we want to filter by.
*
* @return array|\Drupal\migrate\Plugin\MigrationInterface[]
* An array of migration objects with the given tag.
*/
public function createInstancesByTag($tag);
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
DiscoveryInterface:: |
public | function | Gets a specific plugin definition. | 4 |
DiscoveryInterface:: |
public | function | Gets the definition of all plugins for this type. | 3 |
DiscoveryInterface:: |
public | function | Indicates if a specific plugin definition exists. | 2 |
FactoryInterface:: |
public | function | Creates a pre-configured instance of a plugin. | 7 |
MapperInterface:: |
public | function | Gets a preconfigured instance of a plugin. | 4 |
MigrationPluginManagerInterface:: |
public | function | Create pre-configured instance of plugin derivatives. | 1 |
MigrationPluginManagerInterface:: |
public | function | Create migrations given a tag. | 1 |
MigrationPluginManagerInterface:: |
public | function | Creates a stub migration plugin from a definition array. | 1 |