I've got a function which is running on hook_ENTITY_TYPE_update
for the user account, but I want to be able to compare against previous values that may have been on the user account, eg see if the user has changed their email address and be able to react to it.
I can see that if I run the debug on the $entity
value that is part of the function that there is an 'original' item within the values
array, is that the only way to retrieve the pre-edited data?