function TestEntityForm::setEntityTypeManager

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

File

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

Class

TestEntityForm
Provides a test entity form.

Namespace

Drupal\Tests\Core\Entity

Code

public function setEntityTypeManager(EntityTypeManagerInterface $entity_type_manager) {
    $this->entityTypeManager = $entity_type_manager;
    return $this;
}

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