You are here

public function Secure::__construct in Drupal 9

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

File

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

Class

Secure

Namespace

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

Code

public function __construct(array $values) {
  if (is_string($values['value'])) {
    $values['value'] = array(
      $values['value'],
    );
  }
  $this->roles = $values['value'];
}