RandomGeneratorTrait.php

Same filename in this branch
  1. 8.9.x core/tests/Drupal/Tests/RandomGeneratorTrait.php
Same filename and directory in other branches
  1. 9 core/tests/Drupal/Tests/RandomGeneratorTrait.php
  2. 10 core/tests/Drupal/Tests/RandomGeneratorTrait.php
  3. 11.x core/tests/Drupal/Tests/RandomGeneratorTrait.php

Namespace

Drupal\simpletest

File

core/modules/simpletest/src/RandomGeneratorTrait.php

View source
<?php

namespace Drupal\simpletest;

@trigger_error(__NAMESPACE__ . '\\RandomGeneratorTrait is deprecated in Drupal 8.1.1, will be removed before Drupal 9.0.0. Use \\Drupal\\Tests\\RandomGeneratorTrait instead.', E_USER_DEPRECATED);
use Drupal\Tests\RandomGeneratorTrait as BaseGeneratorTrait;

/**
 * Provides random generator utility methods.
 *
 * @deprecated in drupal:8.1.1 and is removed from drupal:9.0.0. Use
 *   \Drupal\Tests\RandomGeneratorTrait instead.
 *
 * @see \Drupal\Tests
 */
trait RandomGeneratorTrait {
    use BaseGeneratorTrait;

}

Traits

Title Deprecated Summary
RandomGeneratorTrait

in drupal:8.1.1 and is removed from drupal:9.0.0. Use \Drupal\Tests\RandomGeneratorTrait instead.

Provides random generator utility methods.

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