
| Current Path : /var/www/html/vendor/drush/drush/src/Drupal/Commands/sql/ |
Linux ift1.ift-informatik.de 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 |
| Current File : /var/www/html/vendor/drush/drush/src/Drupal/Commands/sql/SanitizePluginInterface.php |
<?php
namespace Drush\Drupal\Commands\sql;
use Consolidation\AnnotatedCommand\CommandData;
use Symfony\Component\Console\Input\InputInterface;
/**
* Implement this interface when building a Drush sql-sanitize plugin.
*/
interface SanitizePluginInterface
{
/**
* Run your sanitization logic using standard Drupal APIs.
*
* @param $result Exit code from the main operation for sql-sanitize.
* @param CommandData $commandData Information about the current request.
*
* @hook post-command sql-sanitize
*/
public function sanitize($result, CommandData $commandData);
/**
* @hook on-event sql-sanitize-confirms
*
* @param array $messages An array of messages to show during confirmation.
* @param InputInterface $input The effective commandline input for this request.
*
* @return String[]
* An array of messages.
*/
public function messages(array &$messages, InputInterface $input);
}