You are here

public function FieldGroupDeleteForm::getQuestion in Field Group 8

Same name and namespace in other branches
  1. 8.3 src/Form/FieldGroupDeleteForm.php \Drupal\field_group\Form\FieldGroupDeleteForm::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/FieldGroupDeleteForm.php, line 64

Class

FieldGroupDeleteForm
Provides a form for removing a fieldgroup from a bundle.

Namespace

Drupal\field_group\Form

Code

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