Problem/Motivation

When running translation extractions, we're running in to a

 throw new \InvalidArgumentException("Invalid element data for mapping of '$schema_prefix' for '$key'.");

in this case for:

Invalid element data for mapping of 'diff.layout_plugins' for 'type'.

Proposed resolution

It seems to be a minor issue in the schema file for

diff.layout_plugins:
  type: config_object
  label: 'Plugin'
  mapping:
    type: sequence
    sequence:
      type: mapping
      label: 'Diff configuration for a field type'
      mapping:
        type:
          type: text
          label: 'Plugin key'
        settings:
          type: diff.layout_plugin.settings.[%parent.type]

where the mapping should have a fields key (similar to diff.plugins)

Issue fork diff-3437016

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

ronaldtebrake created an issue. See original summary.

heddn’s picture

Version: 8.x-1.x-dev » 2.x-dev
Status: Active » Needs review
heddn’s picture

Status: Needs review » Needs work
Issue tags: +Needs tests

Needs tests