diff --git a/core/modules/workflows/src/Form/WorkflowEditForm.php b/core/modules/workflows/src/Form/WorkflowEditForm.php index 0f783f4c04a..3a70b5e1507 100644 --- a/core/modules/workflows/src/Form/WorkflowEditForm.php +++ b/core/modules/workflows/src/Form/WorkflowEditForm.php @@ -120,7 +120,7 @@ class WorkflowEditForm extends EntityForm { ]; if ($this->entity->access('delete-state:' . $state->id())) { $links['delete'] = [ - 'title' => t('Delete'), + 'title' => $this->t('Delete'), 'url' => Url::fromRoute('entity.workflow.delete_state_form', [ 'workflow' => $workflow->id(), 'workflow_state' => $state->id(), @@ -133,7 +133,7 @@ class WorkflowEditForm extends EntityForm { '#weight' => $state->weight(), 'weight' => [ '#type' => 'weight', - '#title' => t('Weight for @title', ['@title' => $state->label()]), + '#title' => $this->t('Weight for @title', ['@title' => $state->label()]), '#title_display' => 'invisible', '#default_value' => $state->weight(), '#attributes' => ['class' => ['state-weight']], @@ -183,7 +183,7 @@ class WorkflowEditForm extends EntityForm { 'url' => Url::fromRoute('entity.workflow.edit_transition_form', ['workflow' => $workflow->id(), 'workflow_transition' => $transition->id()]), ]; $links['delete'] = [ - 'title' => t('Delete'), + 'title' => $this->t('Delete'), 'url' => Url::fromRoute('entity.workflow.delete_transition_form', ['workflow' => $workflow->id(), 'workflow_transition' => $transition->id()]), ]; $form['transitions_container']['transitions'][$transition->id()] = [ @@ -192,7 +192,7 @@ class WorkflowEditForm extends EntityForm { '#weight' => $transition->weight(), 'weight' => [ '#type' => 'weight', - '#title' => t('Weight for @title', ['@title' => $transition->label()]), + '#title' => $this->t('Weight for @title', ['@title' => $transition->label()]), '#title_display' => 'invisible', '#default_value' => $transition->weight(), '#attributes' => ['class' => ['transition-weight']], diff --git a/core/modules/workflows/src/Form/WorkflowStateEditForm.php b/core/modules/workflows/src/Form/WorkflowStateEditForm.php index 0ecc3cde6be..d0a1960908d 100644 --- a/core/modules/workflows/src/Form/WorkflowStateEditForm.php +++ b/core/modules/workflows/src/Form/WorkflowStateEditForm.php @@ -125,7 +125,7 @@ class WorkflowStateEditForm extends EntityForm { ]), ]; $links['delete'] = [ - 'title' => t('Delete'), + 'title' => $this->t('Delete'), 'url' => Url::fromRoute('entity.workflow.delete_transition_form', [ 'workflow' => $workflow->id(), 'workflow_transition' => $transition->id(),