You are here

public function MailgunSanitizeCommands::messages in Mailgun 8

Prepares messages.

@hook on-event sql-sanitize-confirms

File

src/Commands/MailgunSanitizeCommands.php, line 65

Class

MailgunSanitizeCommands
Drush sql-sanitize plugin for sanitizing data in the Mailgun queue.

Namespace

Drupal\mailgun\Commands

Code

public function messages(&$messages, InputInterface $input) {
  $options = $input
    ->getOptions();
  if ($this
    ->applies($options['sanitize-mailgun-queue'])) {
    $messages[] = dt('Empty Mailgun queue.');
  }
}