class EntityRevisionTestDestination

Same name and namespace in other branches
  1. 11.x core/modules/migrate/tests/src/Unit/Plugin/migrate/destination/EntityRevisionTest.php \Drupal\Tests\migrate\Unit\Plugin\migrate\destination\EntityRevisionTestDestination

Stub class for testing EntityRevision methods.

Hierarchy

Expanded class hierarchy of EntityRevisionTestDestination

File

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

Namespace

Drupal\Tests\migrate\Unit\Plugin\migrate\destination
View source
class EntityRevisionTestDestination extends EntityRevision {
  private $entity = NULL;
  public function setEntity($entity) {
    $this->entity = $entity;
  }
  protected function getEntity(Row $row, array $old_destination_id_values) {
    return $this->entity;
  }
  public static function getEntityTypeId($plugin_id) {
    return 'foo';
  }

}

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