Add an interface for operators() on views

Created on 10 November 2022, about 2 years ago
Updated 19 March 2024, 8 months ago

Problem/Motivation

Currently the operators() method on views isn't included in the base class \Drupal\views\Plugin\views\filter\FilterPluginBase nor in an interface.

I figured there wouldn't be that many filter plugins without operators so we might add the method to the base class, but it turns out there are quite a few of them

@Lendude in #3 📌 Add an interface for operators() on views Needs work

Proposed resolution

Is it worth a followup to try and convert these to interfaces? We can implement the interface in core now, and warn users that implement the method without the interface that they will have to add the interface for Drupal 11?

@longwave in #4 📌 Add an interface for operators() on views Needs work

I think the interface idea is fantastic.

@alexpott in #5 📌 Add an interface for operators() on views Needs work

📌 Task
Status

Fixed

Version

10.3 ✨

Component
Views  →

Last updated about 11 hours ago

Created by

🇮🇹Italy mondrake 🇮🇹

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

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024