function TestEntityForm::setEntityTypeManager

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

File

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

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.