In order to be compatible with the upcoming 8.x-1.0-alpha4 release of Organic Groups we should now pass the user ID to MembershipManager::getMembership()
rather than the full account object. Ref. https://github.com/Gizra/og/pull/541
Otherwise we will get the following deprecation notice:
Passing an account object is deprecated in og:8.1.0-alpha4 and is removed from og:8.1.0-beta1. Instead pass the user ID as an integer value. See https://github.com/Gizra/og/issues/542 in /home/cphp/data/container/52662a30-3835-493c-9597-caeda40204d5/workspace/web/modules/contrib/og/src/MembershipManager.php line 134
Comment | File | Size | Author |
---|---|---|---|
#2 | 3069870-2.patch | 1.91 KB | pfrenssen |
Comments
Comment #2
pfrenssenHere is a patch. Note that this should only be committed once the 8.x-1.0-alpha4 release of OG is out.
Comment #3
mpp CreditAttribution: mpp at AmeXio for District09 commentedComment #4
pfrenssenThanks for the quick review! This can be committed once OG 8.x-1.0-alpha4 is released. Marking as postponed.
Comment #6
pfrenssenOG 8.x-1.0-alpha4 has been released, so this is ready to be merged.