You are here

public function MediaThumbnailRefreshForm::getDescription in Media Thumbnails 8

Returns additional text to display as a description.

Return value

\Drupal\Core\StringTranslation\TranslatableMarkup The form description.

Overrides ConfirmFormBase::getDescription

File

src/Form/MediaThumbnailRefreshForm.php, line 32

Class

MediaThumbnailRefreshForm
Implements thumbnail refresh confirmation form.

Namespace

Drupal\media_thumbnails\Form

Code

public function getDescription() : string {
  return $this
    ->t('Are you sure you want to refresh the thumbnails for all media entities? Thumbnails for @count entities will be refreshed.', [
    '@count' => number_format(RefreshBatch::count()),
  ]);
}