function ContentEntityTest::migrationConfigurationProvider
Data provider for several test methods.
See also
\Drupal\Tests\migrate_drupal\Kernel\Plugin\migrate\source\ContentEntityTest::testUserSource
\Drupal\Tests\migrate_drupal\Kernel\Plugin\migrate\source\ContentEntityTest::testFileSource
\Drupal\Tests\migrate_drupal\Kernel\Plugin\migrate\source\ContentEntityTest::testNodeSource
\Drupal\Tests\migrate_drupal\Kernel\Plugin\migrate\source\ContentEntityTest::testMediaSource
\Drupal\Tests\migrate_drupal\Kernel\Plugin\migrate\source\ContentEntityTest::testTermSource
File
- 
              core/
modules/ migrate_drupal/ tests/ src/ Kernel/ Plugin/ migrate/ source/ ContentEntityTest.php, line 436  
Class
- ContentEntityTest
 - Tests the entity content source plugin.
 
Namespace
Drupal\Tests\migrate_drupal\Kernel\Plugin\migrate\sourceCode
public function migrationConfigurationProvider() {
  $data = [];
  foreach ([
    FALSE,
    TRUE,
  ] as $include_translations) {
    foreach ([
      FALSE,
      TRUE,
    ] as $add_revision_id) {
      $configuration = [
        'include_translations' => $include_translations,
        'add_revision_id' => $add_revision_id,
      ];
      // Add an array key for this data set.
      $data[http_build_query($configuration)] = [
        $configuration,
      ];
    }
  }
  return $data;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.