Problem/Motivation

In #2729095: Expose flag count to views, we added a view handler to expose the raw flag_counts table data in views. The FlagCountManager, however, provides other kinds of counts that could also be leveraged by sites.

Proposed resolution

Create extra fields using hook_entity_extra_field_info() and define new view field handlers to get these other values.

Remaining tasks

Create patch.

User interface changes

Additional data would be available in views.

API changes

Additional data would be available in views.

Data model changes

None.

Comments

socketwench created an issue. See original summary.

chx’s picture

Issue summary: View changes

You need both: when viewing entities the entity API is used to display things when viewing individual fields, Views field handlers are viewed. Legacy problems.

joachim’s picture

> Create extra fields using hook_entity_extra_field_info()

That's going to create a lot of noise in the entity view mode admin UI.

ivnish’s picture

Status: Active » Closed (outdated)

8 years without any activity. I think we can close it as outdated. Please reopen if needed.