StaticmaskRegister a masking rule for a field on a model.
StaticgetGet all masking rules for a model.
StaticmaskApply masking to a model instance, respecting both permission rules and masking rules.
The model instance or plain object
The current user's role (for permission filtering)
OptionalModel: any
The model class (optional, inferred from instance.constructor)
StaticmaskApply masking to an array of instances.
OptionalModel: anyStaticmaskApply masking to a single value.
StaticapplyWire afterFind hooks onto a model to automatically mask results.
DataMasker.applyHooks(User);
Static facade bundling the masking API (mirrors the module-level functions).