function DevelGenerateBase::getRandom
Same name in other branches
- 8.x-1.x devel_generate/src/DevelGenerateBase.php \Drupal\devel_generate\DevelGenerateBase::getRandom()
- 5.x devel_generate/src/DevelGenerateBase.php \Drupal\devel_generate\DevelGenerateBase::getRandom()
Returns the random data generator.
Return value
\Drupal\Component\Utility\Random The random data generator.
File
-
devel_generate/
src/ DevelGenerateBase.php, line 198
Class
- DevelGenerateBase
- Provides a base DevelGenerate plugin implementation.
Namespace
Drupal\devel_generateCode
protected function getRandom() {
if (!$this->random) {
$this->random = new Random();
}
return $this->random;
}