Generate SilverStripe backend messages with one simple call. Type less, do more.
- SilverStripe Framework ^3.0
composer require friendsofsilverstripe/backendmessages
Within any FieldList you can call any of the following static methods to create a message box:
FieldList::create( ErrorMessage::create('Ehh, something went wrong.'), WarningMessage::create('Be careful with this!'), SuccessMessage::create('Yeah, that went through just fine.'), NoticeMessage::create('This is a useful hint.'), Message::generic('Some more information.') );