ClearAnonymizer.php in General Data Protection Regulation 3.0.x
Same filename and directory in other branches
Namespace
Drupal\anonymizer\Plugin\AnonymizerFile
modules/anonymizer/src/Plugin/Anonymizer/ClearAnonymizer.phpView source
<?php
namespace Drupal\anonymizer\Plugin\Anonymizer;
use Drupal\anonymizer\Anonymizer\AnonymizerBase;
use Drupal\Core\Field\FieldItemListInterface;
/**
* Class ClearAnonymizer.
*
* @Anonymizer(
* id = "clear_anonymizer",
* label = @Translation("Clear anonymizer"),
* description = @Translation("Provides anonymizer functionality intended to clear data.")
* )
*
* @package Drupal\anonymizer\Plugin\Anonymizer
*/
class ClearAnonymizer extends AnonymizerBase {
/**
* Return an empty output regardless of the input.
*
* {@inheritdoc}
*/
public function anonymize($input, FieldItemListInterface $field = NULL) {
return '';
}
}
Classes
Name | Description |
---|---|
ClearAnonymizer | Class ClearAnonymizer. |