function TestPerComponentEntityFormDisplay::getEntity

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

Overrides PerComponentEntityFormDisplay::getEntity

File

core/modules/migrate/tests/src/Unit/destination/PerComponentEntityFormDisplayTest.php, line 59

Class

TestPerComponentEntityFormDisplay

Namespace

Drupal\Tests\migrate\Unit\destination

Code

protected function getEntity($entity_type, $bundle, $form_mode) {
    $this->testValues = func_get_args();
    return $this->entity;
}

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