
| Current Path : /var/www/html/strat/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/strat/vendor/drush/drush/src/Drupal/Commands/sql/SanitizePluginInterface.php |
<?php
declare(strict_types=1);
namespace Drush\Drupal\Commands\sql;
use Consolidation\AnnotatedCommand\CommandData;
use Consolidation\AnnotatedCommand\Hooks\HookManager;
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.
*
* Use `#[CLI\Hook(type: HookManager::POST_COMMAND_HOOK, target: SanitizeCommands::SANITIZE)]`
*/
public function sanitize($result, CommandData $commandData);
/**
* Use #[CLI\Hook(type: HookManager::ON_EVENT, target: SanitizeCommands::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);
}