node_user_cancel($edit, $account, $method)
Implements hook_user_cancel().
File
core/modules/node/node.module, line 683 The core module that allows content to be submitted to the site.
Code
function node_user_cancel($edit, $account, $method) {
switch ($method) {
case 'user_cancel_block_unpublish':
// Unpublish nodes (current revisions).
$nids = \Drupal::entityQuery('node')
->condition('uid', $account->id())
->execute();
module_load_include('inc'