public function LoginDestinationDeleteRuleForm::getQuestion in Login Destination 8
Same name and namespace in other branches
- 8.2 src/Form/LoginDestinationDeleteRuleForm.php \Drupal\login_destination\Form\LoginDestinationDeleteRuleForm::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/ LoginDestinationDeleteRuleForm.php, line 17
Class
- LoginDestinationDeleteRuleForm
- Provides a deletion confirmation form for login destination.
Namespace
Drupal\login_destination\FormCode
public function getQuestion() {
/** @var $login_destination \Drupal\login_destination\Entity\LoginDestination */
$login_destination = $this->entity;
return $this
->t('Are you sure you want to delete the login destination "@destination"?', [
'@destination' => $login_destination
->getLabel(),
]);
}