Hierarchy plugin configuration form

Created on 23 December 2024, about 20 hours ago

Problem/Motivation

I have created a custom facets Hierarchy plugin that can be configured. But FacetForm.php doesn't display the Hierarchy config form, only the Hierarchy plugin select.

Proposed resolution

FacetForm.php already handles submission of the Hierarchy plugin config form values on line 827:

$facet->setHierarchy($hierarchy_id, $form_state->getValue(
  [
    'facet_settings',
    $hierarchy_id,
  ]
));

But the config form is never rendered, so this submission doesn't make sense, it just saves an empty value in the facet config

hierarchy:
  type: custom_hierarchy
  config: {  }
πŸ› Bug report
Status

Active

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States edwardsay

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