You are here

public function SensorDeleteForm::getConfirmText in Monitoring 8

Returns a caption for the button that confirms the action.

Return value

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

Overrides EntityConfirmFormBase::getConfirmText

File

src/Form/SensorDeleteForm.php, line 36
Contains \Drupal\monitoring\Form\SensorDeleteForm.

Class

SensorDeleteForm
Builds the form to delete a monitoring sensor.

Namespace

Drupal\monitoring\Form

Code

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