function EntityTestDestination::getEntity

Same name in other branches
  1. 9 core/modules/migrate/tests/src/Unit/Plugin/migrate/destination/EntityContentBaseTest.php \Drupal\Tests\migrate\Unit\Plugin\migrate\destination\EntityTestDestination::getEntity()
  2. 8.9.x core/modules/migrate/tests/src/Unit/Plugin/migrate/destination/EntityContentBaseTest.php \Drupal\Tests\migrate\Unit\Plugin\migrate\destination\EntityTestDestination::getEntity()
  3. 10 core/modules/migrate/tests/src/Unit/Plugin/migrate/destination/EntityContentBaseTest.php \Drupal\Tests\migrate\Unit\Plugin\migrate\destination\EntityTestDestination::getEntity()

Overrides Entity::getEntity

File

core/modules/migrate/tests/src/Unit/Plugin/migrate/destination/EntityContentBaseTest.php, line 120

Class

EntityTestDestination
Stub class for testing EntityContentBase methods.

Namespace

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

Code

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

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