diff --git a/core/modules/content_moderation/content_moderation.routing.yml b/core/modules/content_moderation/content_moderation.routing.yml index 1786d1c..c5aacbf 100644 --- a/core/modules/content_moderation/content_moderation.routing.yml +++ b/core/modules/content_moderation/content_moderation.routing.yml @@ -1,4 +1,4 @@ -entity.workflow.edit_type_form: +workflow.update_entity_type_form: path: '/admin/config/workflow/workflows/manage/{workflow}/type/{entity_type_id}' defaults: _form: '\Drupal\content_moderation\Form\WorkflowTypeEditForm' diff --git a/core/modules/content_moderation/src/Plugin/WorkflowType/ContentModeration.php b/core/modules/content_moderation/src/Plugin/WorkflowType/ContentModeration.php index cf091dd..bd938ac 100644 --- a/core/modules/content_moderation/src/Plugin/WorkflowType/ContentModeration.php +++ b/core/modules/content_moderation/src/Plugin/WorkflowType/ContentModeration.php @@ -372,7 +372,7 @@ public function buildConfigurationForm(array $form, FormStateInterface $form_sta '#links' => [ 'Add' => [ 'title' => $this->t('Add or remove types'), - 'url' => Url::fromRoute('entity.workflow.edit_type_form', ['workflow' => $workflow->id(), 'entity_type' => $entity_type->id()]), + 'url' => Url::fromRoute('workflow.update_entity_type_form', ['workflow' => $workflow->id(), 'entity_type_id' => $entity_type->id()]), 'attributes' => [ 'aria-label' => $this->t('Add or remove types'), 'class' => ['use-ajax'],