public static function AutoUsernameSettingsForm::autoUsernameCleanTokenValues in Automatic User Names 8
Clean token values.
Parameters
array $replacements: An array of token replacements that need to be "cleaned".
File
- src/
Form/ AutoUsernameSettingsForm.php, line 433
Class
- AutoUsernameSettingsForm
- Class AutoUsernameSettingsForm.
Namespace
Drupal\auto_username\FormCode
public static function autoUsernameCleanTokenValues(&$replacements) {
foreach ($replacements as $token => $value) {
$replacements[$token] = self::autoUsernameCleanstring($value);
}
}