You are here

public function ConfirmDeleteForm::getQuestion in Hashtags 8

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/ConfirmDeleteForm.php, line 25

Class

ConfirmDeleteForm

Namespace

Drupal\hashtags\Form

Code

public function getQuestion() {
  $entity_type_label = _hashtags_get_entity_type_label($this->entity_type);
  $bundle_label = _hashtags_get_bundle_label($this->entity_type, $this->bundle);
  $source = $this->entity_type !== $this->bundle ? $entity_type_label . ' > ' . $bundle_label : $entity_type_label;
  return $this
    ->t("Are you sure you want to remove hashtags for <em>{$source}</em>?");
}