Problem/Motivation

There are several issue reporting problems with Route "entity.workflow_scheduled_transition.*".
In fact it should not exist at all. It has no function. All handling is done via the normal transition routes/forms.

Amongst others, it corrupts the 'normal' editing links in the Workflow History tab.

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

in src/Entity/WorkflowScheduledTransition.php:

@@ -38,11 +38,6 @@ use Drupal\Core\Field\BaseFieldDefinition;
  *     "bundle" = "wid",
  *     "langcode" = "langcode",
  *   },
- *   links = {
- *     "canonical" = "/workflow_transition/{workflow_scheduled_transition}",
- *     "delete-form" = "/workflow_transition/{workflow_scheduled_transition}/delete",
- *     "edit-form" = "/workflow_transition/{workflow_scheduled_transition}/edit",
- *   },
  * )
  */

and in workflow.routing.yml:

-### Workflow Scheduled Transition CRUD
-entity.workflow_scheduled_transition.canonical:
-  path: '/workflow_transition/{workflow_scheduled_transition}'
...
-entity.workflow_scheduled_transition.edit_form:
-  path: '/workflow_transition/{workflow_scheduled_transition}/edit'
...
-
-entity.workflow_scheduled_transition.delete_form:
-  path: '/workflow_transition/{workflow_scheduled_transition}/delete'
...

Comments

johnv created an issue. See original summary.

  • johnv committed b715f31a on 8.x-1.x
    Issue #3424973: Route entity.workflow_scheduled_transition.canonical is...
johnv’s picture

Issue summary: View changes

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.