hook_entity_update

function hook_entity_update

hook_entity_update(Drupal\Core\Entity\EntityInterface $entity)

Respond to updates to an entity.

This hook runs once the entity storage has been updated. Note that hook implementations may not alter the stored entity data. Get the original entity object from $entity->original.

Parameters

\Drupal\Core\Entity\EntityInterface $entity: The entity object.

See also

hook_ENTITY_TYPE_update()

Related topics

登录查看完整内容