- 🇮🇳India Prem Suthar gujrat
Try To Fix The Failed CMF #97 Patch . And Add Interdiff between the #97-101.
- 🇮🇳India Rashmisoni Bangalore
Try To Fix The Failed CMF #101 Patch . And Add Interdiff between the #101-102
- 🇧🇪Belgium BramDriesen Belgium 🇧🇪
+++ b/core/tests/Drupal/Tests/Core/Entity/KeyValueStore/KeyValueEntityStorageTest.php @@ -632,7 +632,9 @@ +/** + * + */
This could actually use some content. An empty PHPDoc doesn't add much value.
- 🇺🇸United States bradjones1 Digital Nomad Life
Legitimately curious, was #102 just an automated update without reviewing it? The empty comment is a code smell for a rote contribution.
- 🇧🇪Belgium BramDriesen Belgium 🇧🇪
That is quite possible indeed. I've seen a lot of re-rolls recently which were not good, omitting new files and things like adding comments that don't add any value.
- 🇧🇪Belgium BramDriesen Belgium 🇧🇪
Instead of removing the PHPDoc you should have added some content/text in it.
- 🇮🇳India Prem Suthar gujrat
addressed the #107 Comment. upload The patch And Interdiff between.
- 🇮🇳India Prem Suthar gujrat
Fix the Failed CMD Patch of Mine.Remove Failed Patch.
- Status changed to Needs review
about 1 year ago 7:38am 20 March 2023 The last submitted patch, , failed testing. View results →
The last submitted patch, 110: 2551893-109.patch, failed testing. View results →
- Status changed to Needs work
about 1 year ago 9:07am 28 March 2023 - 🇬🇧United Kingdom longwave UK
I have a project that uses a significant number of these hooks and it would be much nicer if they could be events instead.
What would also be good is if we could have a base EntityUpdateEvent (for all entity types), and extend that to NodeUpdateEvent (for nodes only), and subscribers on EntityUpdateEvent would also receive NodeUpdateEvent. Unfortunately, Symfony does not support this pattern as far as I can tell: https://github.com/symfony/symfony/pull/32079
- 🇫🇷France andypost
I find it more challenging https://git.drupalcode.org/project/hux/-/blob/1.x/src/HuxReplacementHook...
@longwave please elaborate "these hooks" dowsides
- 🇬🇧United Kingdom longwave UK
@andypost all my code is written as services and so the hooks end up being
/** * Implements hook_node_update(). */ function MODULE_node_update(NodeInterface $node) { if (in_array($node->bundle(), ['x', 'y'])) { \Drupal::service('MODULE.SERVICE')->method($node); } }
It would be cleaner if I could just inject this service into an event listener.
- 🇷🇺Russia Chi
There is a lot of activity around hooks via PHP attributes issue ( 🌱 [META] Hooks via attributes on service methods (hux style) Active ). I think it's time to make a final decision about which way
we are going to replace the current hooks system.
So far we've got the following options.- Events via Symfony Event Dispatcher
- Hooks via PHP attributes
- Nothing (keep the current hook implementation)
This is required to allow starting work on concrete implementation of the new event/hook system. I am not sure on what is the best way to get the resolution. Guess it needs to be done by framework managers.
- @marios-anagnostopoulos opened merge request.
- last update
11 months ago Custom Commands Failed - @marios-anagnostopoulos opened merge request.
Forget !4340...
I moved the changes of !210 to 11.x in !4423
I will start working on the review of @claudiucristea, unless someone beats me to it, or the issue ends up getting dropped.
Having said that.. has there been any discussion on the matter?- last update
11 months ago Build Successful - last update
11 months ago Patch Failed to Apply - last update
10 months ago Build Successful Marios Anagnostopoulos → changed the visibility of the branch 2551893-add-entity-events to hidden.
Attaching a patch for 10.2.2 (Based on !4423) (Probably applies to older versions as well, that #97 does not cover)
- last update
5 months ago Custom Commands Failed - 🇺🇸United States bradjones1 Digital Nomad Life
This needs to be an MR against 11.x at this point.