function editor_note_user_cancel in Editor Notes 8
Implements hook_user_cancel().
File
- ./
editor_note.module, line 65 - Contains editor_node.module.
Code
function editor_note_user_cancel($edit, UserInterface $account, $method) {
switch ($method) {
case 'user_cancel_reassign':
\Drupal::service('class_resolver')
->getInstanceFromDefinition(EntityHook::class)
->onUserCancel($account);
break;
default:
break;
}
}