- Issue created by @Chewie
- Merge request !284Draft: Resolve #3504337 "Allow dynamic properties" → (Open) created by Unnamed author
Currently in class \Drupal\facets\Result\Result we have declared properties like termWeight
which are used by \Drupal\facets\Plugin\facets\processor\TermWeightWidgetOrderProcessor
only. If we need to implement some other sort processor plugin using the same approach we sometimes also need to use custom dynamic properties for the Result object. Unfortunately, to do that is not possible with PHP 8.3 (as we will have a warning regarding the deprecation of dynamic properties).
Probably it make sense to allow for \Drupal\facets\Result\Result
dynamic properties by adding #[\AllowDynamicProperties]
for class declaration.
Please see the proposed patch.
Active
2.0
Code