public function PurgerMoveForm::getQuestion in Purge 8.3
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
- modules/
purge_ui/ src/ Form/ PurgerMoveForm.php, line 115
Class
- PurgerMoveForm
- Move purger {id} in the purger execution order - 'up' or 'down'.
Namespace
Drupal\purge_ui\FormCode
public function getQuestion() {
$label = [
'@label' => $this->purgePurgers
->getLabels()[$this->id],
];
if ($this->direction === 'up') {
return $this
->t('Do you want to move @label up in the execution order?', $label);
}
elseif ($this->direction === 'down') {
return $this
->t('Do you want to move @label down in the execution order?', $label);
}
return '';
}