Route "entity.workflow_state.canonical" added for link template

Created on 5 June 2024, 9 months ago
Updated 19 June 2024, 8 months ago

Problem/Motivation

As per #2866889-21: WSD on workflow module states page :

WorkflowState defines a canonical link template but not also a route for it! So this will still fail. And there is nothing I can about it here since that is a workflow issue. Entities that define a link template for canonical, should also define the route for that.

Steps to reproduce

Proposed resolution

Add the canonical route, identical to collection:

entity.workflow_state.canonical:
  path: '/admin/config/workflow/workflow/{workflow_type}/states'
  defaults:
    _entity_list: 'workflow_state'
    _title: 'Edit Workflow'
    _title_callback: 'workflow_url_get_title'
  requirements:
    _permission: 'administer workflow'
  options:
    parameters:
      workflow_type:
        type: entity:workflow_type

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Fixed

Version

1.7

Component

Code

Created by

🇳🇱Netherlands johnv

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024