function HistoryHooks::userDelete
Implements hook_ENTITY_TYPE_delete() for user entities.
File
-
core/
modules/ history/ src/ Hook/ HistoryHooks.php, line 87
Class
- HistoryHooks
- Hook implementations for history.
Namespace
Drupal\history\HookCode
public function userDelete($account) {
\Drupal::database()->delete('history')
->condition('uid', $account->id())
->execute();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.