diff --git a/src/Plugin/views/filter/EREFNodeTitles.php b/src/Plugin/views/filter/EREFNodeTitles.php index 27ebc3d..7eee71e 100644 --- a/src/Plugin/views/filter/EREFNodeTitles.php +++ b/src/Plugin/views/filter/EREFNodeTitles.php @@ -113,7 +113,9 @@ class EREFNodeTitles extends ManyToOne implements PluginInspectionInterface, Co } public function buildOptionsForm(&$form, FormStateInterface $form_state) { - $this->options['expose']['identifier'] = $form_state->get('id'); + if (!isset($this->options['expose']['identifier'])) { + $this->options['expose']['identifier'] = $form_state->get('id'); + } parent::buildOptionsForm($form, $form_state); //TODO this probably should be done in an options function but didn't seem to work...this does $form['relationship']['#options'] = array_intersect_key($form['relationship']['#options'], $this->get_relationships); @@ -219,6 +221,9 @@ class EREFNodeTitles extends ManyToOne implements PluginInspectionInterface, Co case 'node_field_data': $entity_type_id = 'node'; break; + case 'taxonomy_term_field_data': + $entity_type_id = 'taxonomy_term'; + break; default: return; break;