Change record status: 
Introduced in branch: 
2.1.x
Introduced in version: 
2.1.1-beta1
Description: 

UserRestrictionTypeBase has a new method, :::setErrorMessage() which can be used by ::matches() to set the error message which is then returned by ::getErrorMessage().
This change avoid using a property to store the matched value, which was then used by ::getErrorMessage() to build the error message.

UserRestrictionTypeBase implements ::getErrorMessage(); classes extending it just need to call ::setErrorMessage() in ::matches().

This change is backward compatible. classes that do not call ::setErrorMessage() and build the error message in ::getErrorMessage() will still work.

Impacts: 
Module developers
Site templates, recipes and distribution developers