Replace view filter with entity reference

Issue information

From user: enyug

Related to !40 (merged) !39 (merged)

Contribution record

Fork management

Problem/Motivation

There is a new view filter created in the this core patch (https://www.drupal.org/files/issues/2021-12-02/2429699-453-9.3.x.patch) which lets all entity reference field using entity dropdown or autocomplete instead of numeric textfield as view filter. The target_id field in this module is using numeric as view filter by default. The similar functionality should be applied in this module.

Steps to reproduce

1, Create an entity hierarchy field in specific content type.
2, Create view for this content type with exposed view filter on that entity hierarchy field target_id.
3, The view filter for this field shows as a text field.

Proposed resolution

Replace plugin for target_id field in function entity_hierarchy_field_views_data()

Remaining tasks

User interface changes

Nil

API changes

Nil

Data model changes

Nil

Edited by drupalbot
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information