Problem/Motivation

Trying to export a config_page for default_content module I'm getting this error:
exception 'UnexpectedValueException' with message 'External URLs do not have route parameters.' in /my/project/web/core/lib/Drupal/Core/Url.php:606

This is due to how Config Pages URLs are built.

Here are the steps to reproduce:

  1. Enable config_pages & default_content modules
  2. Create a config_page
  3. Try to export the config page using drush: drush default-content-export config_pages 1
  4. Exception will be thrown

Proposed resolution

Create a custom normalizer ConfigPagesNormalizer to handle this exception and allow to export the config_pages.

Remaining tasks

User interface changes

None

API changes

New service provided as Normalizer for Config Pages

Data model changes

CommentFileSizeAuthor
#2 create_a_specific-2733195-2.patch1.51 KBplopesc

Comments

plopesc created an issue. See original summary.

plopesc’s picture

Status: Active » Needs review
StatusFileSize
new1.51 KB

Hello,

Here is the patch proposed in the issue summary.

Thanks

  • shumer committed 5aa2562 on 8.x-1.x
    Issue #2733195 by plopesc: Create a specific Normalizer for Config Pages
    
shumer’s picture

Status: Needs review » Fixed

Fixed in RC4.

Status: Fixed » Closed (fixed)

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

nortmas’s picture

Status: Closed (fixed) » Needs review

After I updated the module to version RC4 I see an error:

Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException: The service "config_pages.config_pages_normalizer" has a dependency on a non-existent service "rest.link_manager"

BTW: core module "REST" wasn't enabled.

I assume you have to add it to dependency list.

shumer’s picture

Status: Needs review » Fixed

Fixed in RC5

Status: Fixed » Closed (fixed)

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