Results
22.06.2024
vp 1.0.x-dev ::
vp.module
/**
* Implements hook_user_cancel().
*/
function vp_user_cancel($edit, UserInterface $account, $method) {
switch ($method) {
case 'user_cancel_block_unpublish':
// Unpublish virtual patients.
$storage = \Drupal::entityTypeManager()->getStorage('virtual_patient');
$virtual_patient_ids = $storage->getQuery()
->condition('uid', $account->id()) 22.05.2024
wayf 1.0.x-dev ::
wayf.module
* @inheritdoc
*/
function wayf_user_cancel($edit, $account, $method) {
if ('user_cancel_delete' === $method) {
\Drupal::database()->delete('wayf')
->condition('uid', $account->id())
->execute();
}
} 23.09.2020
webhooks 8.x-1.x-dev ::
src/Hook/WebhooksHooks.php
/**
* Implements hook_user_cancel().
*/
#[Hook('user_cancel')]
public function userCancel($edit, UserInterface $account, $method): void {
/** @var \Drupal\webhooks\WebhooksService $webhooks_service */
$webhooks_service = \Drupal::service('webhooks.service');
/** @var \Symfony\Component\Serializer\Serializer $serializer */ 23.06.2020
workflow 8.x-1.x-dev ::
src/Hook/WorkflowEntityHooks.php
/** * Implements hook_user_cancel(). * * Implements deprecated workflow_update_workflow_transition_history_uid(). * * " When cancelling the account * " - Disable the account and keep its content. * " - Disable the account and unpublish its content.
* The cancellation method.
*
* @see hook_user_cancel()
*
* Updates tables for deleted account, move account to user 0 (anon.)
* ALERT: This may cause previously non-Anonymous posts to suddenly
* be accessible to Anonymous.
*/
#[Hook('user_cancel')] 23.06.2020
workflow 8.x-1.x-dev ::
workflow.entity.inc
/**
* Implements hook_user_cancel().
*
* Update tables for deleted account, move account to user 0 (anon.)
* ALERT: This may cause previously non-Anonymous posts to suddenly
* be accessible to Anonymous.
*
* @see hook_user_cancel()
*/
#[LegacyHook]
function workflow_user_cancel($edit, AccountInterface $account, $method): void {
\Drupal::service(WorkflowEntityHooks::class)->userDelete($account);
}
/**
* Implements hook_user_delete().
* 12.10.2018
youtube_playlist 8.x-1.x-dev ::
youtube_playlist.module
/**
* Implements hook_user_cancel().
*/
function youtube_playlist_user_cancel($edit, UserInterface $account, $method) {
switch ($method) {
case 'user_cancel_block_unpublish':
// Unpublish youtube playlists.
$storage = \Drupal::entityTypeManager()->getStorage('youtube_playlist');
$youtube_playlist_ids = $storage->getQuery()
->condition('uid', $account->id()) 