public function FileHashCommands::generate in File Hash 8
Generate hashes for existing files.
@aliases fgen,filehash-generate @command filehash:generate @usage drush filehash:generate Generate hashes for existing files.
File
- src/
Commands/ FileHashCommands.php, line 21
Class
- FileHashCommands
- Drush 9 integration for File Hash module.
Namespace
Drupal\filehash\CommandsCode
public function generate() {
batch_set(GenerateBatch::createBatch());
$batch =& batch_get();
$batch['progressive'] = FALSE;
drush_backend_batch_process();
}