Deprecated function: Creation of dynamic property Drupal\Core\Form\FormState::$facets_not_built is deprecated in Drupal\facets\Plugin\views\filter\FacetsFilter->valueForm()

Created on 6 February 2024, 5 months ago
Updated 7 May 2024, about 2 months ago

Problem/Motivation

While displaying facet using views via the FacetsFilter filter, and not checking "Hide facet when facet source is not rendered" in facet, a deprecation message shows :

Deprecated function: Creation of dynamic property Drupal\Core\Form\FormState::$facets_not_built is deprecated in Drupal\facets\Plugin\views\filter\FacetsFilter->valueForm() (line 114 of modules/contrib/facets/src/Plugin/views/filter/FacetsFilter.php).

Drupal\facets\Plugin\views\filter\FacetsFilter->valueForm(Array, Object) (Line: 950)
Drupal\views\Plugin\views\filter\FilterPluginBase->buildExposedForm(Array, Object) (Line: 111)
[... stack trace ...]

Steps to reproduce

  1. Add a facet
  2. Do not check the "Hide facet when facet source is not rendered" option
  3. Display the facet in a view (embed here) using the related filter

Proposed resolution

See attached patch.

🐛 Bug report
Status

Closed: duplicate

Version

3.0

Component

Code

Created by

🇫🇷France NicociN

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.69.0 2024