You are here

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'
drush.services.yml in ./drush.services.yml
drush.services.yml
1 service uses FileHashCommands
filehash.commands in ./drush.services.yml
\Drupal\filehash\Commands\FileHashCommands

File

src/Commands/FileHashCommands.php, line 11

Namespace

Drupal\filehash\Commands
View 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

Namesort descending Modifiers Type Description Overrides
FileHashCommands::generate public function Generate hashes for existing files.