protected function MigrateUiParagraphsTestBase::setClassicNodeMigration in Paragraphs 8
Sets the type of the node migration.
Parameters
bool $classic_node_migration: Whether nodes should be migrated with the 'classic' way. If this is FALSE, and the current Drupal instance has the 'complete' migration, then the complete node migration will be used.
1 call to MigrateUiParagraphsTestBase::setClassicNodeMigration()
- MigrateUiParagraphsTest::testParagraphsMigrate in tests/
src/ Functional/ Migrate/ MigrateUiParagraphsTest.php - Tests the result of the paragraphs migration.
File
- tests/
src/ Functional/ Migrate/ MigrateUiParagraphsTestBase.php, line 549
Class
- MigrateUiParagraphsTestBase
- Provides a base class for testing Paragraphs migration via the UI.
Namespace
Drupal\Tests\paragraphs\Functional\MigrateCode
protected function setClassicNodeMigration(bool $classic_node_migration) {
$current_method = Settings::get('migrate_node_migrate_type_classic', FALSE);
if ($current_method !== $classic_node_migration) {
$settings['settings']['migrate_node_migrate_type_classic'] = (object) [
'value' => $classic_node_migration,
'required' => TRUE,
];
$this
->writeSettings($settings);
}
}