Skip to main content
Drupal 8

Main navigation

  • Home
    • Question And Answer
    • NEWS
    • Projects
  • Tutorials - Drupal
    • Android
    • Other
User account menu
  • Log in

Breadcrumb

  1. Home

Configuration property error.

By editor , 31 October, 2017
Question

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

 

Tags

  • Drupal 8
  • Code
  • Plugin
  • Configuration
Create a View Plugin Without using Database field
Drupal 8 Plugin API

Comments

Plain text

  • No HTML tags allowed.
  • Lines and paragraphs break automatically.
  • Web page addresses and email addresses turn into links automatically.

Links

  • Drupal.org
  • Drupal core release cycle
  • Drupal events with ease
  • Unit test with Drupal using PHPUnit (Drupal 10)
  • Tokens for file upload url
  • Tips for Docker
  • CKEditor inline image files usage for custom forms.
  • Install Docker on Linux Mint
  • Install PHP 8.1
  • Drupal Security Best Practices
  • Order and sort items with tabledrag
  • Add a custom service YAML container
  • Apply a patch with composer