trait RandomGeneratorTrait

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

Provides random generator utility methods.

Hierarchy

Deprecated

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

See also

\Drupal\Tests

File

core/modules/simpletest/src/RandomGeneratorTrait.php, line 17

Namespace

Drupal\simpletest
View source
trait RandomGeneratorTrait {
    use BaseGeneratorTrait;

}

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