The DomainAccessCondition condition plugin (id: domain_access) declares a domains configuration key in its defaultConfiguration() method, but has no corresponding config schema entry in domain_access.schema.yml.

The parent domain module correctly declares condition.plugin.domain in domain.schema.yml, but the equivalent entry for condition.plugin.domain_access is missing.

Steps to reproduce

  1. Enable the domain_access module.
  2. Place a block with a Domain Access visibility condition and select some domains.
  3. Run config schema validation — the domains key is flagged as unknown.

Proposed fix

Add the following to domain_access/config/schema/domain_access.schema.yml:

condition.plugin.domain_access:
  type: condition.plugin
  mapping:
    domains:
      type: sequence
      sequence:
        type: machine_name

Issue fork domain-3576137

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

mably created an issue. See original summary.

mably’s picture

Issue summary: View changes

  • mably committed 89320b3a on 3.x
    task: #3576137 Missing config schema for condition.plugin.domain_access...
mably’s picture

Status: Active » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

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