public function UriAnonymizer::anonymize in General Data Protection Regulation 8.2
Same name and namespace in other branches
- 8 modules/anonymizer/src/Plugin/Anonymizer/UriAnonymizer.php \Drupal\anonymizer\Plugin\Anonymizer\UriAnonymizer::anonymize()
- 3.0.x modules/anonymizer/src/Plugin/Anonymizer/UriAnonymizer.php \Drupal\anonymizer\Plugin\Anonymizer\UriAnonymizer::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/ UriAnonymizer.php, line 24
Class
- UriAnonymizer
- Class UriAnonymizer.
Namespace
Drupal\anonymizer\Plugin\AnonymizerCode
public function anonymize($input, FieldItemListInterface $field = NULL) {
// @todo: Force https?
return $this->faker
->generator()->url;
}