Filter: gk/foundation/notices/evaluation/notice
Filters whether a notice should be displayed.
Return true to include, false to exclude, or null to continue normal evaluation.
Parameters
| Name | Type | Description |
|---|---|---|
| $should_display | bool|null | Whether to display the notice. Default null. |
| $notice | \NoticeInterface | The notice being evaluated_notices. |
| $context | string|null | Current admin context. |
| $user_state | array | User state data. |
Since
- 1.3.0
Source
Defined in Notices/NoticeEvaluator.php at line 95