How to determine if a beforeSave hook was called for update?

Collapse
X
 
  • Time
  • Show
Clear All
new posts

  • tothewine
    commented on 's reply
    Well, then I propose a feature request (low priority) to send an X-Header with the request type from the client js.

  • yuri
    replied
    They are not distinguishable.

    Leave a comment:


  • How to determine if a beforeSave hook was called for update?

    if I want to find out if my php hook is being called as part of entity creation I do $entity->isNew();
    But how do I differentiate if the entity is being edited with the 'Edit' button or by updating a single field?
Working...