diff options
Diffstat (limited to 'lib/public/Profile/BeforeTemplateRenderedEvent.php')
-rw-r--r-- | lib/public/Profile/BeforeTemplateRenderedEvent.php | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/lib/public/Profile/BeforeTemplateRenderedEvent.php b/lib/public/Profile/BeforeTemplateRenderedEvent.php new file mode 100644 index 00000000000..1fbeec28b0f --- /dev/null +++ b/lib/public/Profile/BeforeTemplateRenderedEvent.php @@ -0,0 +1,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; + } +} |