entity_extra
Categories
Component ID
2723317
Component name
entity_extra
Component type
module
Maintenance status
Development status
Component security advisory coverage
not-covered
Component created
Component changed
Component body
Extra 'entity' module related simple modules stuff to improve user and developer expirience.
At the time it contains common API modul 'entity_extra' and three sub-modules:
- entity_extra_embed_context - provides an entity wrapper stack to get it from embedded entity. It could be useful to get wrappers trace when we render an entity by a some 'reference' or 'field_collection' modules field widget.
Note: just enable/disable main 'entity_extra_embed_context' module as nested modules will inherit parent module state.Note: context is pushing while 'hook_entity_view_mode_alter()' and poping while 'hook_entity_view_alter()' hooks calls.
You could get it in a nested entity i.e. from custom 'hook_FORM_ID_form_alter()' hook. - entity_extra_rules - provides three Rules actions at the time:
- Get the entity URL
- Get the entity identifiers
- Get the entity owner
- entity_extra_wrapper - wraps every entity by 'div' tag with class 'entity-extra-wrapper' to be able to get it by JS.
