You are here

public function MediaThumbnailCommands::refresh in Media Thumbnails 8

Refresh the thumbnails for all media entities.

@aliases thref,thumbnails-refresh @command thumbnails:refresh @usage drush thumbnails:refresh Refresh thumbnails for all media entities

File

src/Commands/MediaThumbnailCommands.php, line 21

Class

MediaThumbnailCommands
Drush 9 integration for the media thumbnails module.

Namespace

Drupal\media_thumbnails\Commands

Code

public function refresh() {
  batch_set(RefreshBatch::createBatch());
  $batch =& batch_get();
  $batch['progressive'] = FALSE;
  drush_backend_batch_process();
}