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

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

caiohc created an issue. See original summary.

caiohc’s picture

StatusFileSize
new1.34 KB

This is for dev branch

caiohc’s picture

Version: 8.x-1.0 » 8.x-1.4
Status: Active » Needs review
caiohc’s picture

StatusFileSize
new1.28 KB
avpaderno’s picture

Version: 8.x-1.4 » 8.x-1.x-dev

Automatic tests won't run because they are aren't enabled for the Drupal 8 branch.

maximkashuba made their first commit to this issue’s fork.

maximkashuba’s picture

Status: Needs review » Fixed

Reapplied patch #3 (comment 4).

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.