You are here

public function TestEntityForm::setEntityTypeManager in Drupal 9

Same name and namespace in other branches
  1. 8 core/tests/Drupal/Tests/Core/Entity/EntityTypeManagerTest.php \Drupal\Tests\Core\Entity\TestEntityForm::setEntityTypeManager()

File

core/tests/Drupal/Tests/Core/Entity/EntityTypeManagerTest.php, line 485
Contains \Drupal\Tests\Core\Entity\EntityTypeManagerTest.

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