You are here

public function FieldCollectionItemDeleteForm::getQuestion in Field collection 8

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

Class

FieldCollectionItemDeleteForm
Provides a form for deleting a field collection item.

Namespace

Drupal\field_collection\Form

Code

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