NodeMigrateType
final class NodeMigrateType (View source)
Provides a class to determine the type of migration.
Traits
Configures the appropriate migrations for a given source Drupal database.
Constants
| NODE_MIGRATE_TYPE_COMPLETE |
Only the complete node migration map tables are in use. |
| NODE_MIGRATE_TYPE_CLASSIC |
Only the classic node migration map tables are in use. |
Properties
| protected ConfigFactoryInterface | $configFactory | The config factory service. |
from MigrationConfigurationTrait |
| protected MigrationPluginManagerInterface | $migrationPluginManager | The migration plugin manager service. |
from MigrationConfigurationTrait |
| protected StateInterface | $state | The state service. |
from MigrationConfigurationTrait |
| protected string[] | $followUpMigrationTags | The follow-up migration tags. |
from MigrationConfigurationTrait |
Methods
Gets the database connection for the source Drupal database.
Gets the system data from the system table of the source Drupal database.
Creates the necessary state entries for SqlBase::getDatabase() to work.
Gets the migrations for import.
Returns the follow-up migration tags.
Determines what version of Drupal the source database contains.
Gets the config factory service.
Gets the migration plugin manager service.
Determines the type of node migration to be used.
Details
protected Connection
getConnection(array $database)
Gets the database connection for the source Drupal database.
protected array
getSystemData(Connection $connection)
Gets the system data from the system table of the source Drupal database.
protected
createDatabaseStateSettings(array $database, string $drupal_version)
Creates the necessary state entries for SqlBase::getDatabase() to work.
The state entities created here have to exist before migration plugin instances are created so that derivers such as \Drupal\taxonomy\Plugin\migrate\D6TermNodeDeriver can access the source database.
protected MigrationInterface[]
getMigrations(string $database_state_key, int $drupal_version)
Gets the migrations for import.
protected string[]
getFollowUpMigrationTags()
Returns the follow-up migration tags.
static string|false
getLegacyDrupalVersion(Connection $connection)
Determines what version of Drupal the source database contains.
protected ConfigFactoryInterface
getConfigFactory()
Gets the config factory service.
protected MigrationPluginManagerInterface
getMigrationPluginManager()
Gets the migration plugin manager service.
protected StateInterface
getState()
Gets the state service.
static string
getNodeMigrateType(Connection $connection, string|false $version)
| internal |
Determines the type of node migration to be used.
The node complete migration is the default. It is not used when there are existing tables for dN_node.