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, 10 months ago
Updated 14 August 2024, 3 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.71.5 2024