protected function MigrateUiParagraphsTestBase::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 MigrateUiParagraphsTestBase::setClassicNodeMigration()
MigrateUiParagraphsTest::testParagraphsMigrate in paragraphs/tests/src/Functional/Migrate/MigrateUiParagraphsTest.php
Tests the result of the paragraphs migration.

File

paragraphs/tests/src/Functional/Migrate/MigrateUiParagraphsTestBase.php, line 564

Class

MigrateUiParagraphsTestBase
Provides a base class for testing Paragraphs migration via the UI.

Namespace

Drupal\Tests\paragraphs\Functional\Migrate

Code

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);
  }
}