You are here

public function TestEntityFormInjected::__construct in Drupal 9

Same name and namespace in other branches
  1. 8 core/tests/Drupal/Tests/Core/Entity/EntityTypeManagerTest.php \Drupal\Tests\Core\Entity\TestEntityFormInjected::__construct()
  2. 10 core/tests/Drupal/Tests/Core/Entity/EntityTypeManagerTest.php \Drupal\Tests\Core\Entity\TestEntityFormInjected::__construct()

Constructs a new TestEntityFormInjected.

Parameters

string $color: The color of the entity type.

File

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

Class

TestEntityFormInjected
Provides a test entity form that uses injection.

Namespace

Drupal\Tests\Core\Entity

Code

public function __construct($color) {
  $this->color = $color;
}