FileHashCommands.php in File Hash 8
Namespace
Drupal\filehash\CommandsFile
src/Commands/FileHashCommands.phpView source
<?php
namespace Drupal\filehash\Commands;
use Drupal\filehash\Batch\GenerateBatch;
use Drush\Commands\DrushCommands;
/**
* Drush 9 integration for File Hash module.
*/
class FileHashCommands extends DrushCommands {
/**
* Generate hashes for existing files.
*
* @aliases fgen,filehash-generate
* @command filehash:generate
* @usage drush filehash:generate
* Generate hashes for existing files.
*/
public function generate() {
batch_set(GenerateBatch::createBatch());
$batch =& batch_get();
$batch['progressive'] = FALSE;
drush_backend_batch_process();
}
}
Classes
Name | Description |
---|---|
FileHashCommands | Drush 9 integration for File Hash module. |