Add a Notice object
Example
$notices->add(new NoticeError("An error occurred!"));
Usage
$notices = $notices->add(Notice $item);
Arguments
Name | Type(s) | Description |
---|---|---|
item | Notice | Item to add. |
Return value
Exceptions
Method can throw exceptions on error:
WireException
- If given an item that can't be stored by this WireArray.
See Also
$notices methods and properties
API reference based on ProcessWire core version 3.0.236