Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 300626

Make views exposed filter operator labels configurable

$
0
0

Problem/Motivation

Currently, if you have a view with an exposed filter, and you expose the operator for it, the label is hard-coded to "Operator". The only way to change it is to implement a hook form alter, which is not accessible to site builders, and will likely break if the configuration for the view changes.

Proposed resolution

Make it configurable via the UI so that site builders can configure it, and export it with the rest of the view.

Remaining tasks

  • Write patch
  • Write update path
  • Write update path test
  • Write test for the new setting
  • Review
  • Commit

User interface changes

A new form element is exposed to the users when configuring a views exposed filter.

API changes

None.

Data model changes

New views data type schema operator_label.

Release notes snippet

Views exposed filters that also expose the operator are now able to configure the label for the operator.


Viewing all articles
Browse latest Browse all 300626

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>