You are here

public function AnonymizerInterface::anonymize in General Data Protection Regulation 8.2

Same name and namespace in other branches
  1. 8 modules/anonymizer/src/Anonymizer/AnonymizerInterface.php \Drupal\anonymizer\Anonymizer\AnonymizerInterface::anonymize()
  2. 3.0.x modules/anonymizer/src/Anonymizer/AnonymizerInterface.php \Drupal\anonymizer\Anonymizer\AnonymizerInterface::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.

10 methods override AnonymizerInterface::anonymize()
ClearAnonymizer::anonymize in modules/anonymizer/src/Plugin/Anonymizer/ClearAnonymizer.php
Return an empty output regardless of the input.
DateAnonymizer::anonymize in modules/anonymizer/src/Plugin/Anonymizer/DateAnonymizer.php
Return an anonymized output.
EmailAnonymizer::anonymize in modules/anonymizer/src/Plugin/Anonymizer/EmailAnonymizer.php
Return an anonymized output.
LongTextAnonymizer::anonymize in modules/anonymizer/src/Plugin/Anonymizer/LongTextAnonymizer.php
Return an anonymized output.
NumberAnonymizer::anonymize in modules/anonymizer/src/Plugin/Anonymizer/NumberAnonymizer.php

... See full list

File

modules/anonymizer/src/Anonymizer/AnonymizerInterface.php, line 25

Class

AnonymizerInterface
Interface AnonymizerInterface.

Namespace

Drupal\anonymizer\Anonymizer

Code

public function anonymize($input, FieldItemListInterface $field = NULL);