You are here

function gdpr_long_text_local_generator in General Data Protection Regulation 7

Local generator for long text sanitizer.

1 call to gdpr_long_text_local_generator()
gdpr_long_text_sanitize in modules/gdpr_dump/plugins/sanitizer/LongTextSanitizer.inc
Long text sanitize callback.

File

modules/gdpr_dump/plugins/sanitizer/LongTextSanitizer.inc, line 58

Code

function gdpr_long_text_local_generator($input) {
  $random = new GdprDumpUtilRandom();
  $paragraph_count = str_word_count($input) % 5;
  return $random
    ->paragraphs($paragraph_count);
}