Abstract EntityReferenceFilterViewResult::getConfiguredViewsOptions() foreach loop for easier customization

Created on 27 September 2022, about 2 years ago
Updated 29 May 2023, over 1 year ago

Problem/Motivation

When trying to create a plugin to extend EntityReferenceFilterViewResult class, the getConfiguredViewsOptions() method does not give us the ability to customize the options array returned. Only by calling parent method and processing the already processed options filter is possible to customize it OR by overwriting the whole method.

Steps to reproduce

Proposed resolution

Abstract the lines 229 to 232, so if anyone needs to customize the filter, it'll be easier for custom processed options to be used.

Remaining tasks

User interface changes

API changes

Data model changes

📌 Task
Status

Fixed

Version

1.0

Component

Code

Created by

🇧🇷Brazil caiohc

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

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