function TestEntityForm::setEntity

Same name and namespace in other branches
  1. 8.9.x core/tests/Drupal/Tests/Core/Entity/EntityTypeManagerTest.php \Drupal\Tests\Core\Entity\TestEntityForm::setEntity()
  2. 10 core/tests/Drupal/Tests/Core/Entity/EntityTypeManagerTest.php \Drupal\Tests\Core\Entity\TestEntityForm::setEntity()
  3. 11.x core/tests/Drupal/Tests/Core/Entity/EntityTypeManagerTest.php \Drupal\Tests\Core\Entity\TestEntityForm::setEntity()

File

core/tests/Drupal/Tests/Core/Entity/EntityTypeManagerTest.php, line 469

Class

TestEntityForm
Provides a test entity form.

Namespace

Drupal\Tests\Core\Entity

Code

public function setEntity(EntityInterface $entity) {
    return $this;
}

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