diff options
author | Joas Schilling <coding@schilljs.com> | 2019-04-30 12:08:22 +0200 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2019-07-15 15:14:58 +0200 |
commit | 64f67818bcc6cc61cc49b1a7c032f3db85b73c91 (patch) | |
tree | f17e3c44ce81a94e4cf9d0f941a0002011b4f1a3 /core/Notification | |
parent | 865c12aa0e624d21d15b351ee5fcbedffa55f11c (diff) | |
download | nextcloud-server-64f67818bcc6cc61cc49b1a7c032f3db85b73c91.tar.gz nextcloud-server-64f67818bcc6cc61cc49b1a7c032f3db85b73c91.zip |
Fix new core notifier
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'core/Notification')
-rw-r--r-- | core/Notification/RemoveLinkSharesNotifier.php | 23 |
1 files changed, 21 insertions, 2 deletions
diff --git a/core/Notification/RemoveLinkSharesNotifier.php b/core/Notification/RemoveLinkSharesNotifier.php index b77846c847e..b2e73aee237 100644 --- a/core/Notification/RemoveLinkSharesNotifier.php +++ b/core/Notification/RemoveLinkSharesNotifier.php @@ -36,7 +36,27 @@ class RemoveLinkSharesNotifier implements INotifier { $this->l10nFactory = $factory; } - public function prepare(INotification $notification, $languageCode): INotification { + /** + * Identifier of the notifier, only use [a-z0-9_] + * + * @return string + * @since 17.0.0 + */ + public function getID(): string { + return 'core'; + } + + /** + * Human readable name describing the notifier + * + * @return string + * @since 17.0.0 + */ + public function getName(): string { + return $this->l10nFactory->get('core')->t('Nextcloud Server'); + } + + public function prepare(INotification $notification, string $languageCode): INotification { if($notification->getApp() !== 'core') { throw new \InvalidArgumentException(); } @@ -51,5 +71,4 @@ class RemoveLinkSharesNotifier implements INotifier { throw new \InvalidArgumentException('Invalid subject'); } - } |