You are here

public function Template::__construct in Drupal 10

Same name and namespace in other branches
  1. 8 core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/Annotation/Template.php \Drupal\Tests\Component\Annotation\Doctrine\Fixtures\Annotation\Template::__construct()
  2. 9 core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/Annotation/Template.php \Drupal\Tests\Component\Annotation\Doctrine\Fixtures\Annotation\Template::__construct()

File

core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/Annotation/Template.php, line 10

Class

Template

Namespace

Drupal\Tests\Component\Annotation\Doctrine\Fixtures\Annotation

Code

public function __construct(array $values) {
  $this->name = isset($values['value']) ? $values['value'] : null;
}