How do I get the title of an entity in hook_entity_presave? I am trying to get the title of an entity and I can do a dsm of the $entity, but when i do a dsm of $entity->values , nothing shows up.
If the entity is a node, you can do:

$entity-&gt;getTitle();

Or:

$entity-&gt;get('title')-&gt;value;

Here are a list of methods for the Entity object, and for the Node object.