summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/private/notification/imanager.php6
-rw-r--r--lib/private/notification/manager.php8
2 files changed, 14 insertions, 0 deletions
diff --git a/lib/private/notification/imanager.php b/lib/private/notification/imanager.php
index 0cd92b33251..f4a5fb14e31 100644
--- a/lib/private/notification/imanager.php
+++ b/lib/private/notification/imanager.php
@@ -53,4 +53,10 @@ interface IManager extends IApp, INotifier {
* @since 8.2.0
*/
public function createNotification();
+
+ /**
+ * @return bool
+ * @since 8.2.0
+ */
+ public function hasNotifiers();
}
diff --git a/lib/private/notification/manager.php b/lib/private/notification/manager.php
index 9635925e38e..0d5bb9be514 100644
--- a/lib/private/notification/manager.php
+++ b/lib/private/notification/manager.php
@@ -113,6 +113,14 @@ class Manager implements IManager {
}
/**
+ * @return bool
+ * @since 8.2.0
+ */
+ public function hasNotifiers() {
+ return !empty($this->notifiersClosures);
+ }
+
+ /**
* @param INotification $notification
* @return null
* @throws \InvalidArgumentException When the notification is not valid