Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Drupal\Component\Utility\Random already contains all the necessary methods to generate random data and most of the random data generated by devel_generate already uses Random
(see DevelGenerateBase::populateFields(), ::generateSampleItems() and ::generateSampleValue()). For consistency and ease of maintenance we should use the methods of this class and remove ::createPara
, ::createContent
, ::createGreeking
, ::generateWord
in DevelGenerateBase.
Comment | File | Size | Author |
---|---|---|---|
#1 | devel-generate-random-2469319-1.patch | 12.14 KB | willzyx |
Comments
Comment #1
willzyx CreditAttribution: willzyx commentedComment #2
willzyx CreditAttribution: willzyx commentedComment #3
willzyx CreditAttribution: willzyx commentedassigned to moshe to hear what he thinks about it
Comment #4
moshe weitzman CreditAttribution: moshe weitzman commentedLooks great. Love removing code.
Comment #6
willzyx CreditAttribution: willzyx commentedCommitted and pushed to 8.x