You are here

class Secure in Drupal 10

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
  2. 9 core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/Annotation/Secure.php \Drupal\Tests\Component\Annotation\Doctrine\Fixtures\Annotation\Secure

Hierarchy

  • class \Drupal\Tests\Component\Annotation\Doctrine\Fixtures\Annotation\Secure

Expanded class hierarchy of Secure

Related topics

File

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

Namespace

Drupal\Tests\Component\Annotation\Doctrine\Fixtures\Annotation
View source
class Secure {
  private $roles;
  public function __construct(array $values) {
    if (is_string($values['value'])) {
      $values['value'] = array(
        $values['value'],
      );
    }
    $this->roles = $values['value'];
  }

}

Members