Secure.php

Same filename and directory in other branches
  1. 11.x core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/Annotation/Secure.php
  2. 10 core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/Annotation/Secure.php
  3. 9 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

// @codingStandardsIgnoreFile
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.