Problems with page_manager.page_variant.* schema

Created on 3 February 2016, over 8 years ago
Updated 26 July 2024, about 1 month ago

First, I want to say i'm not convinced the problem lies within Page Manager, it could be core.

Problem/Motivation

  1. Create a new page manager page
  2. Create a new display variant, "Panels" page or a core Blocks Page will do.
  3. Add a views block to the page and save everything.
  4. Validate the newly created page_variant config object, either using simpletest or with the below snippet:
// Register the schema validator service.
services:
  simpletest.config_schema_checker:
    class: Drupal\Core\Config\Testing\ConfigSchemaChecker
    arguments: ['@config.typed']
    tags:
      - { name: event_subscriber }

// Validate the page variant you created.
 $c = \Drupal::service('config.manager')->loadConfigEntityByName('page_manager.page_variant.block_page');
  $c->save();

The block will fail the config schema checker with the settings specific to views blocks. This isn't specific to views, it also does it for other modules that add additional keys to blocks such as twitter_block.

Proposed resolution

Not sure...

Remaining tasks

Debug

User interface changes

n/a

API changes

n/a

Data model changes

n/a

πŸ› Bug report
Status

Needs review

Version

4.0

Component

Code

Created by

πŸ‡¦πŸ‡ΊAustralia benjy

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

Merge Requests

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.71.5 2024