You are here

public function WorkflowStateDeleteForm::getQuestion in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/workflows/src/Form/WorkflowStateDeleteForm.php \Drupal\workflows\Form\WorkflowStateDeleteForm::getQuestion()
  2. 10 core/modules/workflows/src/Form/WorkflowStateDeleteForm.php \Drupal\workflows\Form\WorkflowStateDeleteForm::getQuestion()

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 WorkflowStateDeleteForm::getQuestion()
WorkflowStateDeleteForm::buildForm in core/modules/workflows/src/Form/WorkflowStateDeleteForm.php
Form constructor.

File

core/modules/workflows/src/Form/WorkflowStateDeleteForm.php, line 41

Class

WorkflowStateDeleteForm
Builds the form to delete states from Workflow entities.

Namespace

Drupal\workflows\Form

Code

public function getQuestion() {
  return $this
    ->t('Are you sure you want to delete %state from %workflow?', [
    '%state' => $this->workflow
      ->getTypePlugin()
      ->getState($this->stateId)
      ->label(),
    '%workflow' => $this->workflow
      ->label(),
  ]);
}