You are here

public function WebformSubmissionsPurgeForm::getWarning in Webform 8.5

Same name and namespace in other branches
  1. 6.x src/Form/WebformSubmissionsPurgeForm.php \Drupal\webform\Form\WebformSubmissionsPurgeForm::getWarning()

Returns warning message to display.

Return value

array A renderable array containing a warning message.

Overrides WebformDeleteFormBase::getWarning

File

src/Form/WebformSubmissionsPurgeForm.php, line 48

Class

WebformSubmissionsPurgeForm
Webform for webform submission purge webform.

Namespace

Drupal\webform\Form

Code

public function getWarning() {
  return [
    '#type' => 'webform_message',
    '#message_type' => 'warning',
    '#message_message' => $this
      ->t('Are you sure you want to purge all submissions?') . '<br/>' . '<strong>' . $this
      ->t('This action cannot be undone.') . '</strong>',
  ];
}