You are here

protected function TestEntityFile::getEntity in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/file/src/Tests/Migrate/EntityFileTest.php \Drupal\file\Tests\Migrate\TestEntityFile::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're importing into.

Overrides EntityFile::getEntity

File

core/modules/file/src/Tests/Migrate/EntityFileTest.php, line 286
Contains \Drupal\file\Tests\Migrate\EntityFileTest.

Class

TestEntityFile

Namespace

Drupal\file\Tests\Migrate

Code

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