function scheduled_updates_entity_update in Scheduled Updates 8
Implements hook_entity_update().
File
- ./
scheduled_updates.module, line 118 - Contains scheduled_updates.module..
Code
function scheduled_updates_entity_update($entity) {
if ($entity instanceof ContentEntityInterface) {
/** @var \Drupal\scheduled_updates\UpdateRunnerUtils $global_runner */
$global_runner = \Drupal::service('scheduled_updates.update_runner');
$global_runner
->invokeEntityUpdate($entity);
}
}