You are here

public function MediaDeleteMultipleConfirmForm::getConfirmText in Drupal 8

Returns a caption for the button that confirms the action.

Return value

\Drupal\Core\StringTranslation\TranslatableMarkup The form confirmation text.

Overrides ConfirmFormBase::getConfirmText

File

core/modules/media/src/Form/MediaDeleteMultipleConfirmForm.php, line 97

Class

MediaDeleteMultipleConfirmForm
Provides a confirmation form to delete multiple media items at once.

Namespace

Drupal\media\Form

Code

public function getConfirmText() {
  return $this
    ->t('Delete');
}