class FileHashCommands in File Hash 8
Drush 9 integration for File Hash module.
Hierarchy
- class \Drupal\filehash\Commands\FileHashCommands extends \Drush\Commands\DrushCommands
Expanded class hierarchy of FileHashCommands
1 string reference to 'FileHashCommands'
1 service uses FileHashCommands
File
- src/
Commands/ FileHashCommands.php, line 11
Namespace
Drupal\filehash\CommandsView source
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();
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
FileHashCommands:: |
public | function | Generate hashes for existing files. |