public function WebformVariantDeleteForm::getWarning in Webform 6.x
Same name and namespace in other branches
- 8.5 src/Form/WebformVariantDeleteForm.php \Drupal\webform\Form\WebformVariantDeleteForm::getWarning()
Returns warning message to display.
Return value
array A renderable array containing a warning message.
Overrides WebformDeleteFormBase::getWarning
File
- src/
Form/ WebformVariantDeleteForm.php, line 49
Class
- WebformVariantDeleteForm
- Form for deleting a webform variant.
Namespace
Drupal\webform\FormCode
public function getWarning() {
$t_args = [
'%title' => $this->webformVariant
->label(),
];
return [
'#type' => 'webform_message',
'#message_type' => 'warning',
'#message_message' => $this
->t('Are you sure you want to delete the %title variant?', $t_args) . '<br/>' . '<strong>' . $this
->t('This action cannot be undone.') . '</strong>',
];
}