Source of file MockTextField.php
Size: 0,490 Bytes - Last Modified: 2021-12-23T10:56:24+00:00
/var/www/docs.ssmods.com/process/src/code/fieldtypes/MockTextField.php
1234567891011121314151617181920212223242526272829 | <?php /** * Defines the methods that are injected into the {@link Text} class for * generating mock data * * @package silverstripe-mock-data * @author Uncle Cheese <unclecheese@leftandmain.com> */ use Faker\Generator; class MockTextField extends DataExtension { /** * Gets a random paragraph * * @param Faker\Generator * @return string */ public function getFakeData(Generator $faker) { return $faker->paragraph(rand(1, 3)); } } |