function RollbackFieldInstanceTest::executeRollback
Same name in other branches
- 9 core/modules/field/tests/src/Kernel/Migrate/d7/RollbackFieldInstanceTest.php \Drupal\Tests\field\Kernel\Migrate\d7\RollbackFieldInstanceTest::executeRollback()
- 8.9.x core/modules/field/tests/src/Kernel/Migrate/d7/RollbackFieldInstanceTest.php \Drupal\Tests\field\Kernel\Migrate\d7\RollbackFieldInstanceTest::executeRollback()
- 10 core/modules/field/tests/src/Kernel/Migrate/d7/RollbackFieldInstanceTest.php \Drupal\Tests\field\Kernel\Migrate\d7\RollbackFieldInstanceTest::executeRollback()
Executes a single rollback.
Parameters
string|\Drupal\migrate\Plugin\MigrationInterface $migration: The migration to rollback, or its ID.
1 call to RollbackFieldInstanceTest::executeRollback()
- RollbackFieldInstanceTest::testFieldInstances in core/
modules/ field/ tests/ src/ Kernel/ Migrate/ d7/ RollbackFieldInstanceTest.php - Tests migrating D7 fields to field_storage_config entities, then rolling back.
File
-
core/
modules/ field/ tests/ src/ Kernel/ Migrate/ d7/ RollbackFieldInstanceTest.php, line 72
Class
- RollbackFieldInstanceTest
- Migrates and rolls back Drupal 7 fields.
Namespace
Drupal\Tests\field\Kernel\Migrate\d7Code
protected function executeRollback($migration) : void {
if (is_string($migration)) {
$this->migration = $this->getMigration($migration);
}
else {
$this->migration = $migration;
}
(new MigrateExecutable($this->migration, $this))
->rollback();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.