backdrop-contrib / entity_plus

This module wraps in a variety of additional entity-related functionality from various sources. Partial port of D7 Entity API.
https://backdropcms.org/project/entity_plus
GNU General Public License v2.0
3 stars 11 forks source link

Entity Plus is missing entity_plus_entity_property_info_alter() #146

Closed argiepiano closed 1 year ago

argiepiano commented 1 year ago

As I was working on fixing some Rules translation test I discovered that, since ported, Entity Plus has been missing an alter hook implementation from D7 that does a few important things - among those, alter the structure of the node property info, and other entities.

entity_plus_entity_property_info_alter() should be placed in the entity_plus.module. (In D7 this was called entity_entity_property_info_alter())

This particular alter hook takes care of invoking a bunch of other sub-hooks in several inc files:

None of those sub-hooks are being currently invoked, and therefore the property structures for those entities are not being modified as needed. So far, the only apparent problem caused by this omission is showing in Rules tests.

This is kind of a critical fix. PR forthcoming.

argiepiano commented 1 year ago

PR #147 ready for review.

This is one of three fixes needed in order for Rules translation to be functional.

bugfolder commented 1 year ago

I still find the whole entity/controller structure pretty challenging, but the argument for its need makes sense; this looks pretty straightforward, and the implementation looks good, so, LGTM.

argiepiano commented 1 year ago

Thanks, @bugfolder

laryn commented 1 year ago

Thanks @argiepiano and @bugfolder!