You are here

public function ResponseHeaderDeleteForm::getQuestion in HTTP Response Headers 8.2

Same name and namespace in other branches
  1. 2.0.x src/Form/ResponseHeaderDeleteForm.php \Drupal\http_response_headers\Form\ResponseHeaderDeleteForm::getQuestion()

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/ResponseHeaderDeleteForm.php, line 18

Class

ResponseHeaderDeleteForm
Builds the form to delete an Response Header.

Namespace

Drupal\http_response_headers\Form

Code

public function getQuestion() {
  return $this
    ->t('Are you sure you want to delete the %name header?', array(
    '%name' => $this->entity
      ->label(),
  ));
}