The function of hook_entity_property_info_alter

Created on 15 April 2012, about 13 years ago
Updated 16 May 2025, 3 days ago

Why did I put a lot of effort in creating a perfect list of entity properties in hook_entity_property_info_alter?

Somehow none of the properties are available in Views. (They are now, but that's because I implement hook_views_data myself.) If I delete my hook_views_data implementation and reload the entity cache, no fields are available in Views.

Shouldn't that work automatically? I see (through debugging) that Entity does create a nice list of properties in entity_views_data, but it looks like they're not being used anywhere. What am I missing here..?

πŸ’¬ Support request
Status

Closed: outdated

Version

1.0

Component

Views integration

Created by

πŸ‡³πŸ‡±Netherlands rudiedirkx

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