Skip to content

Draft: Links display "any" link missing

Checks the configuration and adds an "any" link to the links display. Fixes an issue where the "any" link would not appear if the view also allowed for multiple selections.

Issue stems from this logic in Views FilterPluginBase.php if ($type == 'value' && empty($this->always_required) && empty($this->options['expose']['required']) && $form['#type'] == 'select' && empty($form['#multiple'])) { $form['#options'] = ['All' => $this->t('- Any -')] + $form['#options']; $form['#default_value'] = 'All'; }

Merge request reports

Loading