mirror of
https://github.com/nextcloud/server.git
synced 2026-03-04 18:28:08 +01:00
Merge pull request #19092 from owncloud/allow-checking-for-notifiers
Allow checking whether there are notifiers registered
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
@@ -112,6 +112,14 @@ class Manager implements IManager {
|
||||
return new Notification();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return bool
|
||||
* @since 8.2.0
|
||||
*/
|
||||
public function hasNotifiers() {
|
||||
return !empty($this->notifiersClosures);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param INotification $notification
|
||||
* @return null
|
||||
|
||||
Reference in New Issue
Block a user