MCPcopy Create free account
hub / github.com/Rello/analytics / isAnalyticsEnabledForUser

Method isAnalyticsEnabledForUser

lib/Activity/ActivityManager.php:162–174  ·  view source on GitHub ↗
(?string $userId)

Source from the content-addressed store, hash-verified

160 }
161
162 private function isAnalyticsEnabledForUser(?string $userId): bool
163 {
164 if ($userId === null || $userId === '') {
165 return false;
166 }
167
168 $user = $this->userManager->get($userId);
169 if ($user === null) {
170 return false;
171 }
172
173 return $this->appManager->isEnabledForUser('analytics', $user);
174 }
175}

Callers 1

sendToUsersMethod · 0.95

Calls 2

getMethod · 0.45
isEnabledForUserMethod · 0.45

Tested by

no test coverage detected