You are here

protected function TestPerComponentEntityDisplay::getEntity in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/migrate/tests/src/Unit/destination/PerComponentEntityDisplayTest.php \Drupal\Tests\migrate\Unit\destination\TestPerComponentEntityDisplay::getEntity()
  2. 10 core/modules/migrate/tests/src/Unit/destination/PerComponentEntityDisplayTest.php \Drupal\Tests\migrate\Unit\destination\TestPerComponentEntityDisplay::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 ComponentEntityDisplayBase::getEntity

File

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

Class

TestPerComponentEntityDisplay

Namespace

Drupal\Tests\migrate\Unit\destination

Code

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