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:
parent
11fa45196e
commit
a6f792616c
|
@ -55,6 +55,26 @@ class Notifier implements INotifier {
|
||||||
$this->urlGenerator = $urlGenerator;
|
$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 INotification $notification
|
||||||
* @param string $languageCode The code of the language that should be used to prepare the notification
|
* @param string $languageCode The code of the language that should be used to prepare the notification
|
||||||
|
|
Loading…
Reference in New Issue