- πͺπΈSpain JoseFran
I am interested in prove this funcionality. How can i apply a patch? I'm sorry for the inconvenience.
- Status changed to RTBC
over 1 year ago 1:00pm 3 October 2023 - π¦π²Armenia murz Yerevan, Armenia
I rebased the MR on the fresh HEAD, and reviewed the changes. For me, all look good and work well for my cases. So moving to Reviewed status to move forward.
@JoseFran, to apply a patch you can get the patch code by the "plain diff" link in the MR block.
- πΊπΈUnited States maskedjellybean Portland, OR
Hey @JoseFran, you can generate a patch at: https://git.drupalcode.org/project/hook_event_dispatcher/-/merge_request... (just add .patch to the merge request URL).
@murz, can you explain how to use this feature once the patch is applied? I'd like to implement hook_ENTITY_TYPE_view.
I added a related issue that was seemingly incorrectly closed. Just to reiterate what was pointed out in that issue, there is almost certainly a performance penalty for using hook_entity_view when really you only need hook_ENTITY_TYPE_view. The first is called when viewing any entity and the second is only called when viewing a specific entity type. If events are going to be as performant as hooks then this needs to be figured out.