function TestPerComponentEntityFormDisplay::getEntity

Gets the test entity.

Overrides PerComponentEntityFormDisplay::getEntity

File

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

Class

TestPerComponentEntityFormDisplay
Test class for testing per component entity form display.

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.