Elgg\Notifications\SubscriptionsService::removeSubscription PHP Метод

removeSubscription() публичный Метод

Unsubscribe a user to notifications about a target entity
public removeSubscription ( integer $userGuid, string $method, integer $targetGuid ) : boolean
$userGuid integer The GUID of the user to unsubscribe to notifications
$method string The delivery method of the notifications to stop
$targetGuid integer The entity to stop receiving notifications about
Результат boolean
    public function removeSubscription($userGuid, $method, $targetGuid)
    {
        $prefix = self::RELATIONSHIP_PREFIX;
        return remove_entity_relationship($userGuid, "{$prefix}{$method}", $targetGuid);
    }