aboutsummaryrefslogtreecommitdiffstats
path: root/lib/public/Collaboration/Reference/RenderReferenceEvent.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/public/Collaboration/Reference/RenderReferenceEvent.php')
-rw-r--r--lib/public/Collaboration/Reference/RenderReferenceEvent.php22
1 files changed, 22 insertions, 0 deletions
diff --git a/lib/public/Collaboration/Reference/RenderReferenceEvent.php b/lib/public/Collaboration/Reference/RenderReferenceEvent.php
new file mode 100644
index 00000000000..692098dbf60
--- /dev/null
+++ b/lib/public/Collaboration/Reference/RenderReferenceEvent.php
@@ -0,0 +1,22 @@
+<?php
+
+declare(strict_types=1);
+/**
+ * SPDX-FileCopyrightText: 2022 Nextcloud GmbH and Nextcloud contributors
+ * SPDX-License-Identifier: AGPL-3.0-or-later
+ */
+
+namespace OCP\Collaboration\Reference;
+
+use OCP\EventDispatcher\Event;
+
+/**
+ * Event emitted when apps might render references like link previews or smart picker widgets.
+ *
+ * This can be used to inject scripts for extending that.
+ * Further details can be found in the :ref:`Reference providers` deep dive.
+ *
+ * @since 25.0.0
+ */
+class RenderReferenceEvent extends Event {
+}