protected function EntityTestDestination::getEntity in Drupal 10
Same name and namespace in other branches
- 8 core/modules/migrate/tests/src/Unit/Plugin/migrate/destination/EntityContentBaseTest.php \Drupal\Tests\migrate\Unit\Plugin\migrate\destination\EntityTestDestination::getEntity()
- 9 core/modules/migrate/tests/src/Unit/Plugin/migrate/destination/EntityContentBaseTest.php \Drupal\Tests\migrate\Unit\Plugin\migrate\destination\EntityTestDestination::getEntity()
Creates or loads an entity.
Parameters
\Drupal\migrate\Row $row: The row object.
array $old_destination_id_values: The old destination IDs.
Return value
\Drupal\Core\Entity\EntityInterface The entity we are importing into.
Overrides Entity::getEntity
File
- core/
modules/ migrate/ tests/ src/ Unit/ Plugin/ migrate/ destination/ EntityContentBaseTest.php, line 119 - Contains \Drupal\Tests\migrate\Unit\Plugin\migrate\destination\EntityContentBaseTest.
Class
- EntityTestDestination
- Stub class for testing EntityContentBase methods.
Namespace
Drupal\Tests\migrate\Unit\Plugin\migrate\destinationCode
protected function getEntity(Row $row, array $old_destination_id_values) {
return $this->entity;
}