class SanitizeCommands extends DrushCommands implements CustomEventAwareInterface (View source)

Traits

CustomEventAwareTrait
ProcessManagerAwareTrait
LoggerAwareTrait
IO
ConfigAwareTrait

Constants

REQ

OPT

EXIT_SUCCESS

EXIT_FAILURE

Methods

getConfig()

Replaces same method in ConfigAwareTrait in order to provide a DrushConfig as return type. Helps with IDE completion.

__construct()

No description

LoggerInterface
logger()

Returns a logger object.

io()

Override Robo's IO function with our custom style.

printFile(string $file)

Print the contents of a file.

sanitize()

Sanitize the database by removing or obfuscating user data.

Details

DrushConfig getConfig()

Replaces same method in ConfigAwareTrait in order to provide a DrushConfig as return type. Helps with IDE completion.

__construct()

protected LoggerInterface logger()

Returns a logger object.

Return Value

LoggerInterface

protected io()

Override Robo's IO function with our custom style.

protected printFile(string $file)

Print the contents of a file.

Parameters

string $file Full path to a file.

sanitize()

Sanitize the database by removing or obfuscating user data.

Commandfiles may add custom operations by implementing: - @hook_on-event sql-sanitize-message Display summary to user before confirmation. - @hook post-command sql-sanitize Run queries or call APIs to perform sanitizing