public function WebformSanitizeSubmissionsCommands::messages in Webform 6.x
Same name and namespace in other branches
- 8.5 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.');
}
}