public function WebformSanitizeSubmissionsCommands::messages in Webform 8.5
Same name and namespace in other branches
- 6.x src/Commands/WebformSanitizeSubmissionsCommands.php \Drupal\webform\Commands\WebformSanitizeSubmissionsCommands::messages()
@hook on-event sql-sanitize-confirms
File
- src/
Commands/ WebformSanitizeSubmissionsCommands.php, line 90
Class
- WebformSanitizeSubmissionsCommands
- Drush sql-sanitize plugin for sanitizing (truncating) webform submissions.
Namespace
Drupal\webform\CommandsCode
public function messages(&$messages, InputInterface $input) {
$options = $input
->getOptions();
if ($this
->isEnabled($options['sanitize-webform-submissions'])) {
$messages[] = dt('Truncate webform submission tables.');
}
}