function WorkflowStateDeleteForm::getQuestion

Same name and namespace in other branches
  1. 9 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()
  3. 11.x core/modules/workflows/src/Form/WorkflowStateDeleteForm.php \Drupal\workflows\Form\WorkflowStateDeleteForm::getQuestion()

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(),
    ]);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.