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

Created on 27 September 2022, over 1 year ago
Updated 29 May 2023, about 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.69.0 2024