function Template::__construct

Same name in other branches
  1. 9 core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/Annotation/Template.php \Drupal\Tests\Component\Annotation\Doctrine\Fixtures\Annotation\Template::__construct()
  2. 10 core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/Annotation/Template.php \Drupal\Tests\Component\Annotation\Doctrine\Fixtures\Annotation\Template::__construct()
  3. 11.x 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 11

Class

Template

Namespace

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

Code

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

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