function EntityRevision::save
Same name in this branch
- 9 core/modules/migrate/tests/src/Unit/destination/EntityRevisionTest.php \Drupal\Tests\migrate\Unit\destination\EntityRevision::save()
Same name in other branches
- 8.9.x core/modules/migrate/src/Plugin/migrate/destination/EntityRevision.php \Drupal\migrate\Plugin\migrate\destination\EntityRevision::save()
- 8.9.x core/modules/migrate/tests/src/Unit/destination/EntityRevisionTest.php \Drupal\Tests\migrate\Unit\destination\EntityRevision::save()
- 10 core/modules/migrate/src/Plugin/migrate/destination/EntityRevision.php \Drupal\migrate\Plugin\migrate\destination\EntityRevision::save()
- 10 core/modules/migrate/tests/src/Unit/destination/EntityRevisionTest.php \Drupal\Tests\migrate\Unit\destination\EntityRevision::save()
- 11.x core/modules/migrate/src/Plugin/migrate/destination/EntityRevision.php \Drupal\migrate\Plugin\migrate\destination\EntityRevision::save()
- 11.x core/modules/migrate/tests/src/Unit/destination/EntityRevisionTest.php \Drupal\Tests\migrate\Unit\destination\EntityRevision::save()
Overrides EntityContentBase::save
1 call to EntityRevision::save()
- EntityRevision::save in core/
modules/ migrate/ tests/ src/ Unit/ destination/ EntityRevisionTest.php - Allow public access for testing.
1 method overrides EntityRevision::save()
- EntityRevision::save in core/
modules/ migrate/ tests/ src/ Unit/ destination/ EntityRevisionTest.php - Allow public access for testing.
File
-
core/
modules/ migrate/ src/ Plugin/ migrate/ destination/ EntityRevision.php, line 166
Class
- EntityRevision
- Provides entity revision destination plugin.
Namespace
Drupal\migrate\Plugin\migrate\destinationCode
protected function save(ContentEntityInterface $entity, array $old_destination_id_values = []) {
$entity->save();
return [
$entity->getRevisionId(),
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.