public function ConfirmClearForm::getQuestion in Queue UI 8.2
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/ ConfirmClearForm.php, line 70
Class
- ConfirmClearForm
- Class ConfirmClearForm @package Drupal\queue_ui\Form
Namespace
Drupal\queue_ui\FormCode
public function getQuestion() {
$queues = $this->tempStoreFactory
->get('queue_ui_clear_queues')
->get($this
->currentUser()
->id());
return $this
->formatPlural(count($queues), 'Are you sure you want to clear the queue?', 'Are you sure you want to clear @count queues?');
}