diff options
author | Georg Ehrke <developer@georgehrke.com> | 2019-08-02 16:36:50 +0200 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2019-08-15 20:02:56 +0200 |
commit | a6f792616c37bb63fa826bb6d897738ad5227d6d (patch) | |
tree | be8d225dde306f16abca708685d093fafc053f5b /apps | |
parent | 11fa45196ec5229e640a4e27569f94929510d7da (diff) | |
download | nextcloud-server-a6f792616c37bb63fa826bb6d897738ad5227d6d.tar.gz nextcloud-server-a6f792616c37bb63fa826bb6d897738ad5227d6d.zip |
Implement getID and getName in Reminder/Notifier as required since Nextcloud 17
Signed-off-by: Georg Ehrke <developer@georgehrke.com>
Diffstat (limited to 'apps')
-rw-r--r-- | apps/dav/lib/CalDAV/Reminder/Notifier.php | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/apps/dav/lib/CalDAV/Reminder/Notifier.php b/apps/dav/lib/CalDAV/Reminder/Notifier.php index ff34208a794..3718d5b29a6 100644 --- a/apps/dav/lib/CalDAV/Reminder/Notifier.php +++ b/apps/dav/lib/CalDAV/Reminder/Notifier.php @@ -56,6 +56,26 @@ class Notifier implements INotifier { } /** + * Identifier of the notifier, only use [a-z0-9_] + * + * @return string + * @since 17.0.0 + */ + public function getID():string { + return 'dav'; + } + + /** + * Human readable name describing the notifier + * + * @return string + * @since 17.0.0 + */ + public function getName():string { + return $this->factory->get('dav')->t('Calendar'); + } + + /** * @param INotification $notification * @param string $languageCode The code of the language that should be used to prepare the notification * @return INotification |