SchemaCheckTrait::$ignoredPropertyPaths

Same name in other branches
  1. 11.x core/lib/Drupal/Core/Config/Schema/SchemaCheckTrait.php \Drupal\Core\Config\Schema\SchemaCheckTrait::ignoredPropertyPaths

The ignored property paths.

Allow ignoring specific config schema types (top-level keys, require an exact match to one of the top-level entries in *.schema.yml files) by allowing one or more partial property path matches.

Keys must be an exact match for a Config object's schema type. Values must be wildcard matches for property paths, where any property path segment can use a wildcard (`*`) to indicate any value for that segment should be accepted for this property path to be ignored.

Type: \string[][]

File

core/lib/Drupal/Core/Config/Schema/SchemaCheckTrait.php, line 46

Class

SchemaCheckTrait
Provides a trait for checking configuration schema.

Namespace

Drupal\Core\Config\Schema

Code

protected static array $ignoredPropertyPaths = [
    'search.page.*' => [
        // @todo Fix config or tweak schema of `type: search.page.*` in
        //   https://drupal.org/i/3380475.
        // @see search.schema.yml
'label' => [
            'This value should not be blank.',
        ],
    ],
    'contact.settings' => [
        // @todo Simple config cannot have dependencies on any other config.
        //   Remove this in https://www.drupal.org/project/drupal/issues/3425992.
'default_form' => [
            "The 'contact.form.feedback' config does not exist.",
        ],
    ],
    'editor.editor.*' => [
        // @todo Fix stream wrappers not being available early enough in
        //   https://www.drupal.org/project/drupal/issues/3416735
'image_upload.scheme' => [
            '^The file storage you selected is not a visible, readable and writable stream wrapper\\. Possible choices: <em class="placeholder"><\\/em>\\.$',
        ],
    ],
    'search.settings' => [
        // @todo Simple config cannot have dependencies on any other config.
        //   Remove this in https://www.drupal.org/project/drupal/issues/3425992.
'default_page' => [
            "The 'search.page.node_search' config does not exist.",
        ],
    ],
];

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.