You are here

public function RelationDeleteConfirm::getQuestion in Relation 8

Same name and namespace in other branches
  1. 8.2 src/Form/RelationDeleteConfirm.php \Drupal\relation\Form\RelationDeleteConfirm::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/RelationDeleteConfirm.php, line 33
Contains \Drupal\relation\Form\RelationDeleteConfirm.

Class

RelationDeleteConfirm
Provides a form for relation deletion.

Namespace

Drupal\relation\Form

Code

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