Refactor Classy Paragraphs to use Auto-Route Generation

Created on 8 August 2017, almost 7 years ago
Updated 11 February 2024, 5 months ago

Problem/Motivation

This change is motivated from trying to install Multiversion on a site with pre-existing paragraph content with Classy Paragraphs installed. The following error is thrown during the migration process:

Route "entity.classy_paragraphs_style.canonical" does not exist. (../web/core/lib/Drupal/Core/Routing/RouteProvider.php:190)

This appears related to the following issue: #2665668: Cannot save entities that reference a config entity β†’ and likely related to the wider issue around standardising entity routes and implementing auto-routes in core #2350509: Implement auto-route generation for all core entities and convert all of the core entities. β†’ . Currently Classy Paragraphs does not have a Canonical route set.

Proposed resolution

Refactor the module to use Auto-route generation for Classy Paragraph Entity using the AdminHtmlRouteProvider api, which will then provide the missing canonical route.

✨ Feature request
Status

Needs review

Version

1.0

Component

Code

Created by

πŸ‡¬πŸ‡§United Kingdom roborew

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024