You are here

class MediaThumbnailCommands in Media Thumbnails 8

Drush 9 integration for the media thumbnails module.

Hierarchy

Expanded class hierarchy of MediaThumbnailCommands

File

src/Commands/MediaThumbnailCommands.php, line 11

Namespace

Drupal\media_thumbnails\Commands
View source
class MediaThumbnailCommands extends DrushCommands {

  /**
   * Refresh the thumbnails for all media entities.
   *
   * @aliases thref,thumbnails-refresh
   * @command thumbnails:refresh
   * @usage drush thumbnails:refresh
   *   Refresh thumbnails for all media entities
   */
  public function refresh() {
    batch_set(RefreshBatch::createBatch());
    $batch =& batch_get();
    $batch['progressive'] = FALSE;
    drush_backend_batch_process();
  }

}

Members

Namesort descending Modifiers Type Description Overrides
MediaThumbnailCommands::refresh public function Refresh the thumbnails for all media entities.