function TestPerComponentEntityDisplay::getEntity
Same name and namespace in other branches
- 8.9.x core/modules/migrate/tests/src/Unit/destination/PerComponentEntityDisplayTest.php \Drupal\Tests\migrate\Unit\destination\TestPerComponentEntityDisplay::getEntity()
- 10 core/modules/migrate/tests/src/Unit/destination/PerComponentEntityDisplayTest.php \Drupal\Tests\migrate\Unit\destination\TestPerComponentEntityDisplay::getEntity()
- 11.x 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 62
Class
Namespace
Drupal\Tests\migrate\Unit\destinationCode
protected function getEntity($entity_type, $bundle, $view_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.