I am trying to use entity_extract_ids($entity_type, $entity) where:
$entity_type = The entity type; e.g. 'node' or 'user'.
$entity = The entity from which to extract values.
I have never used this function and don't understand what the second parameter (i.e. $entity) is supposed to be.
I would love to see an example code with this function being used. Thank you.