supports($blueprint)) { return; } $this->notifier->sendToUser($recipient, $blueprint); } /** * Decide which notification types are allowed for Teams. */ public function supports(BlueprintInterface $blueprint): bool { return in_array($blueprint::getType(), [ 'newPost', 'postMentioned', 'userMentioned', 'discussionRenamed', 'postLiked', ], true); } /** * Channel identifier used internally by Flarum. */ public function getName(): string { return 'teams'; } /** * Label shown in the user notification settings UI. */ public function getLabel(): string { return 'Microsoft Teams'; } /** * Teams is opt‑in by default. */ public function isEnabledByDefault(): bool { return false; } }