You are here

protected function WebformMigrateTestBase::setClassicNodeMigration in Webform: Migrate 8.2

Same name and namespace in other branches
  1. 8 tests/src/Kernel/Migrate/d7/WebformMigrateTestBase.php \Drupal\Tests\webform_migrate\Kernel\Migrate\d7\WebformMigrateTestBase::setClassicNodeMigration()

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 WebformMigrateTestBase::setClassicNodeMigration()
WebformMigrateTest::testWebformMigrations in tests/src/Kernel/Migrate/d7/WebformMigrateTest.php
Tests the migration of webforms and webform submissions.

File

tests/src/Kernel/Migrate/d7/WebformMigrateTestBase.php, line 65

Class

WebformMigrateTestBase
Base class for Webform migration kernel tests.

Namespace

Drupal\Tests\webform_migrate\Kernel\Migrate\d7

Code

protected function setClassicNodeMigration(bool $classic_node_migration) {
  $current_method = Settings::get('migrate_node_migrate_type_classic', FALSE);
  if ($current_method !== $classic_node_migration) {
    $this
      ->setSetting('migrate_node_migrate_type_classic', $classic_node_migration);
  }
}