You are here

protected function TestPerComponentEntityFormDisplay::getEntity in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/migrate/tests/src/Unit/destination/PerComponentEntityFormDisplayTest.php \Drupal\Tests\migrate\Unit\destination\TestPerComponentEntityFormDisplay::getEntity()
  2. 9 core/modules/migrate/tests/src/Unit/destination/PerComponentEntityFormDisplayTest.php \Drupal\Tests\migrate\Unit\destination\TestPerComponentEntityFormDisplay::getEntity()

Gets the entity.

Parameters

string $entity_type: The entity type to retrieve.

string $bundle: The entity bundle.

string $mode: The display mode.

Return value

\Drupal\Core\Entity\Display\EntityDisplayInterface The entity display object.

Overrides PerComponentEntityFormDisplay::getEntity

File

core/modules/migrate/tests/src/Unit/destination/PerComponentEntityFormDisplayTest.php, line 62
Contains \Drupal\Tests\migrate\Unit\destination\PerComponentEntityFormDisplayTest.

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;
}