function ConditionDelete::getQuestion
Same name in other branches
- 8.x-3.x src/Form/ConditionDelete.php \Drupal\ctools\Form\ConditionDelete::getQuestion()
Gets the delete question.
Parameters
$id: Condition ID.
$cached_values: Cached Context values.
Return value
\Drupal\Core\StringTranslation\TranslatableMarkup The confirmation delete question.
Overrides ConfirmFormInterface::getQuestion
1 call to ConditionDelete::getQuestion()
- ConditionDelete::buildForm in src/
Form/ ConditionDelete.php - Form constructor.
File
-
src/
Form/ ConditionDelete.php, line 124
Class
- ConditionDelete
- Delete Condition Confirmation Form.
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'],
]);
}