You are here

protected function EntityRevisionTestDestination::getEntity in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/migrate/tests/src/Unit/Plugin/migrate/destination/EntityRevisionTest.php \Drupal\Tests\migrate\Unit\Plugin\migrate\destination\EntityRevisionTestDestination::getEntity()

Gets the entity.

Parameters

\Drupal\migrate\Row $row: The row object.

array $old_destination_id_values: The old destination IDs.

Return value

\Drupal\Core\Entity\EntityInterface|false The entity or false if it can not be created.

Overrides EntityRevision::getEntity

File

core/modules/migrate/tests/src/Unit/Plugin/migrate/destination/EntityRevisionTest.php, line 104

Class

EntityRevisionTestDestination
Stub class for testing EntityRevision methods.

Namespace

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

Code

protected function getEntity(Row $row, array $old_destination_id_values) {
  return $this->entity;
}