Implement getID and getName in Reminder/Notifier as required since Nextcloud 17

Signed-off-by: Georg Ehrke <developer@georgehrke.com>
This commit is contained in:
Georg Ehrke 2019-08-02 16:36:50 +02:00 committed by Roeland Jago Douma
parent 11fa45196e
commit a6f792616c
No known key found for this signature in database
GPG Key ID: F941078878347C0C
1 changed files with 20 additions and 0 deletions

View File

@ -55,6 +55,26 @@ class Notifier implements INotifier {
$this->urlGenerator = $urlGenerator;
}
/**
* 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