CommerceProductTermData::buildOptionsForm must be compatible with RelationshipPluginBase::buildOptionsForm

Created on 5 March 2025, about 2 months ago

Problem/Motivation

In Drupal version 10.2.6 the module generates this error when displaying a view that has a relationship with CommerceProductTermData:
Fatal error: Declaration of Drupal\commerce_product_taxonomy_filter\Plugin\views\relationship\CommerceProductTermData::buildOptionsForm(array &$form, Drupal\Core\Form\FormStateInterface $form_state) must be compatible with Drupal\views\Plugin\views\relationship\RelationshipPluginBase::buildOptionsForm(&$form, Drupal\Core\Form\FormStateInterface $form_state)
I have solved this by making the following patch and applying it through composer

πŸ› Bug report
Status

Active

Version

1.0

Component

Code

Created by

πŸ‡»πŸ‡ͺVenezuela jvizcarrondo

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

Comments & Activities

Production build 0.71.5 2024