Configuration property error. like The configuration property display.default.display_options.filters.FIELD.value.VALUE doesn't exist.
If you have an error like this, when you use a custom views filter plugin, the resent is now you need to have a config schema for all Views filter plugins.
The error :
The configuration property display.default.display_options.filters.FIELD.value.VALUE doesn't exist.
"PHP message: Uncaught PHP Exception InvalidArgumentException: "The configuration property display.default.display_options.filters.lang.value.en doesn't exist." at /PATH/core/lib/Drupal/Core/Config/Schema/ArrayElement.php line 74" while reading response header from upstream, client: 127.0.0.1, server: drupal.loc, request: "POST /admin/structure/views/view/news?q=admin/structure/views/view/news HTTP/1.1", upstream: "fastcgi://unix:/run/php/php5.6-fpm.sock:", host: "drupal.loc", referrer: "http://drupal.loc/admin/structure/views/view/news?q=admin/structure/views/view/news"
Solution :
See core/modules/views/config/schema/views.filter.schema.yml and core/modules/taxonomy/config/schema/taxonomy.views.schema.yml for some examples.
Example :
views.filter.your_plugin_id_here:
type: views.filter.taxonomy_index_tid
label: 'Taxonomy term ID extended'
Example:
In the custom entity 'news' module:
File : config/schema/news.filter.schema.yml
views.filter.news_language:
type: views.filter.language
label: 'Custom language field'
Solution from : https://www.drupal.org/node/2873224
Comments