Issue #2025991 by plach, David Hernández: Introduce hook_entity_prepare() to generalize hook_node_prepare().