function TestEntityFormInjected::__construct

Same name and namespace in other branches
  1. 8.9.x 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()
  3. 11.x 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 508

Class

TestEntityFormInjected
Provides a test entity form that uses injection.

Namespace

Drupal\Tests\Core\Entity

Code

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

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