By avpaderno on
Change record status:
Published (View all published change records)
Project:
Introduced in branch:
2.1.x
Introduced in version:
2.1.1-beta1
Description:
The constants defined from the UserRestrictions class have been deprecated in the 2.1.x branch; they are removed from the 3.0.x branch.
UserRestrictions::NO_EXPIRY
There is no replacement.UserRestrictions::BLACKLIST
There is no replacement.UserRestrictions::WHITELIST
UseUserRestrictionInterface::PATTERN_ALLOWin code similar to the following one.if ($restriction->getPatternType() & UserRestrictionInterface::PATTERN_ALLOW) { // The restriction allows the entered value. }
Impacts:
Module developers
Site templates, recipes and distribution developers