function UserLogoutConfirm::getQuestion

Same name in other branches
  1. 11.x core/modules/user/src/Form/UserLogoutConfirm.php \Drupal\user\Form\UserLogoutConfirm::getQuestion()

Overrides ConfirmFormInterface::getQuestion

File

core/modules/user/src/Form/UserLogoutConfirm.php, line 28

Class

UserLogoutConfirm
Provides a confirmation form for user logout.

Namespace

Drupal\user\Form

Code

public function getQuestion() : TranslatableMarkup {
    return $this->t('Are you sure you want to log out?');
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.