function EntityRevision::getEntity

Allow public access for testing.

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/destination/EntityRevisionTest.php, line 224

Class

EntityRevision
Mock that exposes from internal methods for testing.

Namespace

Drupal\Tests\migrate\Unit\destination

Code

public function getEntity(Row $row, array $old_destination_id_values) {
  return parent::getEntity($row, $old_destination_id_values);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.