European Week of Regions and Cities

DeleteUserController extends ControllerBase

Provide user profile form functionalities.

Table of Contents

Properties

$entityTypeManager  : EntityTypeManagerInterface
The entity type manager.
$languageManager  : LanguageManagerInterface
The language manager.
$mailManager  : MailManagerInterface
The mail manager.
$twig  : TwigEnvironment
The twig environment container.

Methods

__construct()  : mixed
Constructs a User object.
assignNewCoordinator()  : mixed
Assign new coordinator for my sessions.
assignSessionsToNewCoordinator()  : mixed
Ajax function to assign sessions to new coordinator.
attemptToDeleteMyAccount()  : mixed
Handle delete user profile.
create()  : mixed
Create container.
assignNewInvitedCoordinator()  : mixed
Check invitations and assign expected coordinator.
checkDeletionPossibility()  : mixed
Check if there is sessions to be assigned to an other coordinator.
deleteAccount()  : mixed
Helper function to delete user profile.
handleSwitchSessionsAndDeleteProfile()  : mixed
Return coordinator sessions.
invitNewCoordinator()  : mixed
Invit new coordinator.
notifyOtherSessionsOwners()  : mixed
Notify others that they have lost a collaborator, speaker or moderator.

Properties

$entityTypeManager

The entity type manager.

protected EntityTypeManagerInterface $entityTypeManager

$languageManager

The language manager.

protected LanguageManagerInterface $languageManager

Methods

__construct()

Constructs a User object.

public __construct(EntityTypeManagerInterface $entity_type_manager, TwigEnvironment $twig, MailManagerInterface $mail_manager, LanguageManagerInterface $language_manager) : mixed
Parameters
$entity_type_manager : EntityTypeManagerInterface
$twig : TwigEnvironment
$mail_manager : MailManagerInterface
$language_manager : LanguageManagerInterface

assignNewCoordinator()

Assign new coordinator for my sessions.

public assignNewCoordinator([mixed $from = NULL ][, mixed $original_coordinator_id = NULL ][, mixed $new_coordinator_id = NULL ]) : mixed
Parameters
$from : mixed = NULL
$original_coordinator_id : mixed = NULL
$new_coordinator_id : mixed = NULL

assignSessionsToNewCoordinator()

Ajax function to assign sessions to new coordinator.

public assignSessionsToNewCoordinator(Request $request) : mixed
Parameters
$request : Request

attemptToDeleteMyAccount()

Handle delete user profile.

public attemptToDeleteMyAccount(Request $request) : mixed
Parameters
$request : Request

create()

Create container.

public static create(ContainerInterface $container) : mixed
Parameters
$container : ContainerInterface

assignNewInvitedCoordinator()

Check invitations and assign expected coordinator.

private assignNewInvitedCoordinator(mixed $expected_new_coordinator_email) : mixed
Parameters
$expected_new_coordinator_email : mixed

checkDeletionPossibility()

Check if there is sessions to be assigned to an other coordinator.

private checkDeletionPossibility(mixed $ownerId) : mixed
Parameters
$ownerId : mixed

deleteAccount()

Helper function to delete user profile.

private deleteAccount(mixed $uid) : mixed
Parameters
$uid : mixed

handleSwitchSessionsAndDeleteProfile()

Return coordinator sessions.

private handleSwitchSessionsAndDeleteProfile(mixed $ownerId, mixed $newOwner) : mixed
Parameters
$ownerId : mixed
$newOwner : mixed

invitNewCoordinator()

Invit new coordinator.

private invitNewCoordinator(mixed $new_coordinator) : mixed
Parameters
$new_coordinator : mixed

notifyOtherSessionsOwners()

Notify others that they have lost a collaborator, speaker or moderator.

private notifyOtherSessionsOwners(mixed $profile_to_delete) : mixed
Parameters
$profile_to_delete : mixed

        
On this page

Search results