interface SanitizePluginInterface (View source)

Implement this interface when building a Drush sql-sanitize plugin.

Methods

sanitize($result, CommandData $commandData)

Run your sanitization logic using standard Drupal APIs.

String[]
messages(array $messages, InputInterface $input)

No description

Details

sanitize($result, CommandData $commandData)

Run your sanitization logic using standard Drupal APIs.

Parameters

$result Exit code from the main operation for sql-sanitize.
CommandData $commandData Information about the current request.

String[] messages(array $messages, InputInterface $input)

Parameters

array $messages An array of messages to show during confirmation.
InputInterface $input The effective commandline input for this request.

Return Value

String[] An array of messages.