It would be nice to have the EntityFormWizardBase add a logging message whenever the entity is saved/updated just like \Drupal\Core\Entity\EntityDeleteFormTrait does.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | interdiff.txt | 1.76 KB | joelpittet |
| #3 | 2985395-3-entity-wizard-logging.patch | 2.04 KB | joelpittet |
| #2 | 2985395-entity-wizard-logging.patch | 1.63 KB | dave reid |
Comments
Comment #2
dave reidThis adds the logging, and separates messages for new vs updated, as well as removing the handling of no success, since if the entity fails to save, an exception is thrown instead of no result.
Comment #3
joelpittetThis seems like a nice clean-up. I've done a bit of touch ups if these are ok with you I'm game to commit this?
drupal_set_message()with the injectedloggerComment #4
dave reidI would prefer to *not* remove drupal_set_message(), because it breaks compatibility with Drupal 8.4.
Comment #6
joelpittetAh good catch, I didn't realize it was introduced in 8.5, we can wait on until 8.4.x is not supported (after 8.6 sometime)
I've committed this to the dev 3.x dev branch.