You are here

public function SiteVerifyDeleteForm::getQuestion in Site verification 8

Returns the question to ask the user.

Return value

\Drupal\Core\StringTranslation\TranslatableMarkup The form question. The page title will be set to this value.

Overrides ConfirmFormInterface::getQuestion

File

src/Form/SiteVerifyDeleteForm.php, line 33

Class

SiteVerifyDeleteForm
Builds the form to delete a forum term.

Namespace

Drupal\site_verify\Form

Code

public function getQuestion() {
  if (!empty($this->siteVerify)) {
    $record = \Drupal::service('site_verify_service')
      ->siteVerifyLoad($this->siteVerify);
    return $this
      ->t('Are you sure you want to delete the site verification %label?', [
      '%label' => $record['engine']['name'],
    ]);
  }
}