Loading core/modules/workflows/src/Form/WorkflowEditForm.php +4 −4 Original line number Diff line number Diff line Loading @@ -120,7 +120,7 @@ public function form(array $form, FormStateInterface $form_state) { ]; 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(), Loading @@ -133,7 +133,7 @@ public function form(array $form, FormStateInterface $form_state) { '#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']], Loading Loading @@ -183,7 +183,7 @@ public function form(array $form, FormStateInterface $form_state) { '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()] = [ Loading @@ -192,7 +192,7 @@ public function form(array $form, FormStateInterface $form_state) { '#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']], Loading core/modules/workflows/src/Form/WorkflowStateEditForm.php +1 −1 Original line number Diff line number Diff line Loading @@ -125,7 +125,7 @@ public function form(array $form, FormStateInterface $form_state) { ]), ]; $links['delete'] = [ 'title' => t('Delete'), 'title' => $this->t('Delete'), 'url' => Url::fromRoute('entity.workflow.delete_transition_form', [ 'workflow' => $workflow->id(), 'workflow_transition' => $transition->id(), Loading Loading
core/modules/workflows/src/Form/WorkflowEditForm.php +4 −4 Original line number Diff line number Diff line Loading @@ -120,7 +120,7 @@ public function form(array $form, FormStateInterface $form_state) { ]; 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(), Loading @@ -133,7 +133,7 @@ public function form(array $form, FormStateInterface $form_state) { '#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']], Loading Loading @@ -183,7 +183,7 @@ public function form(array $form, FormStateInterface $form_state) { '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()] = [ Loading @@ -192,7 +192,7 @@ public function form(array $form, FormStateInterface $form_state) { '#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']], Loading
core/modules/workflows/src/Form/WorkflowStateEditForm.php +1 −1 Original line number Diff line number Diff line Loading @@ -125,7 +125,7 @@ public function form(array $form, FormStateInterface $form_state) { ]), ]; $links['delete'] = [ 'title' => t('Delete'), 'title' => $this->t('Delete'), 'url' => Url::fromRoute('entity.workflow.delete_transition_form', [ 'workflow' => $workflow->id(), 'workflow_transition' => $transition->id(), Loading