You are here

public function FlagMappingDeleteForm::getQuestion in Flags 8

Gathers a confirmation question.

The question is used as a title in our confirm form. For delete confirm forms, this typically takes the form of "Are you sure you want to delete...", including the entity label.

Return value

string Translated string.

Overrides ConfirmFormInterface::getQuestion

File

flags_ui/src/Form/FlagMappingDeleteForm.php, line 33

Class

FlagMappingDeleteForm
Class FlagMappingDeleteForm.

Namespace

Drupal\flags_ui\Form

Code

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