Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
In D9, the 'optional config' is not enabled upon installation of Workflow and optional modules:
- \workflow\config\optional\block.block.workflowtransitionform.yml
- \workflow\config\optional\system.action.change_a_node_to_next_workflow_state.yml
- \workflow\config\optional\views.view.workflow_entity_history.yml
Regarding the View:
id: workflow_entity_history
label: 'Workflow Entity history'
This is actively called in WorkflowTransitionListController.
The view is displayed on the Entity view, tab 'History'.
Comments
Comment #2
johnvComment #3
johnvI see, working on this.
To import manually:
- Navigate to the destination site in your browser at admin/config/development/configuration/full/import
- Select the configuration archive and select upload
- You will see a list of all the configuration items
- Scroll down to the bottom and click the import all button
Comment #4
johnvThe history view gives error "Route "entity.workflow_state.canonical" does not exist." when testing views.view.workflow_entity_history .
The link to the from and to states must be removed.
Comment #5
johnvAll 3 files have problems, because they were not updated to the newest standards:
- dependency on Drupal version
- dependency on other module, theme
If needed, the config can be deleted.
- the history view can be deleted anyway
- block can be deleted as such:
\Drupal::configFactory ()->getEditable ( 'block.block.workflowtransitionform' )->delete ();
Then, they can be re-imported calling
\Drupal::service('config.installer')->installOptionalConfig();
The patch will update all 3 configuration files.
running update.php will install the files, as they should have.
Comment #7
johnvComment #8
johnvIt was needed to fix #3422647: Route "entity.workflow_state.canonical" does not exist." on views.view.workflow_entity_history first.