You are here

public function EntityTestDestination::setEntity in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/migrate/tests/src/Unit/Plugin/migrate/destination/EntityContentBaseTest.php \Drupal\Tests\migrate\Unit\Plugin\migrate\destination\EntityTestDestination::setEntity()
  2. 9 core/modules/migrate/tests/src/Unit/Plugin/migrate/destination/EntityContentBaseTest.php \Drupal\Tests\migrate\Unit\Plugin\migrate\destination\EntityTestDestination::setEntity()

File

core/modules/migrate/tests/src/Unit/Plugin/migrate/destination/EntityContentBaseTest.php, line 115
Contains \Drupal\Tests\migrate\Unit\Plugin\migrate\destination\EntityContentBaseTest.

Class

EntityTestDestination
Stub class for testing EntityContentBase methods.

Namespace

Drupal\Tests\migrate\Unit\Plugin\migrate\destination

Code

public function setEntity($entity) {
  $this->entity = $entity;
}