You are here

public function WebformContentCreatorDeleteForm::getQuestion in Webform Content Creator 3.x

Same name and namespace in other branches
  1. 8 src/Form/WebformContentCreatorDeleteForm.php \Drupal\webform_content_creator\Form\WebformContentCreatorDeleteForm::getQuestion()
  2. 2.x src/Form/WebformContentCreatorDeleteForm.php \Drupal\webform_content_creator\Form\WebformContentCreatorDeleteForm::getQuestion()

Return the question shown when deleting a Webform content creator entity.

Return value

mixed Message shown when deleting a Webform content creator entity.

Overrides ConfirmFormInterface::getQuestion

File

src/Form/WebformContentCreatorDeleteForm.php, line 20

Class

WebformContentCreatorDeleteForm
Defines the Webform Content creator delete form.

Namespace

Drupal\webform_content_creator\Form

Code

public function getQuestion() {
  return $this
    ->t('Are you sure you want to delete %name?', [
    '%name' => $this->entity
      ->getTitle(),
  ]);
}