Secure.php

Same filename and directory in other branches
  1. 9 core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/Annotation/Secure.php
  2. 8.9.x core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/Annotation/Secure.php
  3. 10 core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/Annotation/Secure.php

Namespace

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

File

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

View source
<?php

declare (strict_types=1);
namespace Drupal\Tests\Component\Annotation\Doctrine\Fixtures\Annotation;


/** @Annotation */
class Secure {
    private $roles;
    public function __construct(array $values) {
        if (is_string($values['value'])) {
            $values['value'] = array(
                $values['value'],
            );
        }
        $this->roles = $values['value'];
    }

}

Classes

Title Deprecated Summary
Secure

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