public function ConditionDelete::getQuestion in Chaos Tool Suite (ctools) 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
1 call to ConditionDelete::getQuestion()
- ConditionDelete::buildForm in src/
Form/ ConditionDelete.php - Form constructor.
File
- src/
Form/ ConditionDelete.php, line 105
Class
Namespace
Drupal\ctools\FormCode
public function getQuestion($id = NULL, $cached_values = NULL) {
$condition = $this
->getConditions($cached_values)[$id];
return $this
->t('Are you sure you want to delete the @label condition?', [
'@label' => $condition['id'],
]);
}