I'm using hook_ENTITY_TYPE_presave() to alter the values of nodes upon saving, but I only want to do this for a specific content type.
How do I check the content type of the $entity object? I looked at the documentation for class node and working with Entity API, but all I found was how to get the entity type, not the content type.
Given a node $entity
object, how can I check the content type?