public function Secure::__construct in Drupal 9
Same name and namespace in other branches
- 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
Namespace
Drupal\Tests\Component\Annotation\Doctrine\Fixtures\AnnotationCode
public function __construct(array $values) {
if (is_string($values['value'])) {
$values['value'] = array(
$values['value'],
);
}
$this->roles = $values['value'];
}