blob: 1fbeec28b0f01119042b478f103b92b4cfb242ac (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
<?php
declare(strict_types=1);
/**
* SPDX-FileCopyrightText: 2020 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
namespace OCP\Profile;
use OCP\EventDispatcher\Event;
/**
* Emitted before the rendering step of the public profile page happens.
*
* @since 25.0.0
*/
class BeforeTemplateRenderedEvent extends Event {
private string $userId;
/**
* @since 25.0.0
*/
public function __construct(string $userId) {
parent::__construct();
$this->userId = $userId;
}
/**
* @since 25.0.0
*/
public function getUserId(): string {
return $this->userId;
}
}
|