public function LongTextAnonymizer::anonymize in General Data Protection Regulation 3.0.x
Same name and namespace in other branches
- 8.2 modules/anonymizer/src/Plugin/Anonymizer/LongTextAnonymizer.php \Drupal\anonymizer\Plugin\Anonymizer\LongTextAnonymizer::anonymize()
- 8 modules/anonymizer/src/Plugin/Anonymizer/LongTextAnonymizer.php \Drupal\anonymizer\Plugin\Anonymizer\LongTextAnonymizer::anonymize()
Return an anonymized output.
The input. @var \Drupal\Core\Field\FieldItemListInterface|null $field The field being anonymized.
Return value
int|string The anonymized output.
Overrides AnonymizerInterface::anonymize
File
- modules/
anonymizer/ src/ Plugin/ Anonymizer/ LongTextAnonymizer.php, line 26
Class
- LongTextAnonymizer
- Class LongTextAnonymizer.
Namespace
Drupal\anonymizer\Plugin\AnonymizerCode
public function anonymize($input, FieldItemListInterface $field = NULL) {
return $this->faker
->generator()
->paragraph(self::MAX_SENTENCE_COUNT);
}