|
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Public Member Functions | |
| getType () | |
| getText () | |
| setText ($text) | |
| setIdentifier ($identifier) | |
| getIdentifier () | |
| setIsSticky ($isSticky) | |
| getIsSticky () | |
| toString () | |
| setData (array $data=[]) | |
| getData () | |
Data Fields | |
| const | DEFAULT_IDENTIFIER = 'default_message_identifier' |
| const | TYPE_ERROR = 'error' |
| const | TYPE_WARNING = 'warning' |
| const | TYPE_NOTICE = 'notice' |
| const | TYPE_SUCCESS = 'success' |
Represent a message with a type, content text, and an isSticky attribute to prevent message from being cleared.
@api
Definition at line 14 of file MessageInterface.php.
| getData | ( | ) |
| getIdentifier | ( | ) |
| getIsSticky | ( | ) |
Getter for flag. Whether message is sticky
Implemented in AbstractMessage.
| getText | ( | ) |
| getType | ( | ) |
Getter message type
Implemented in AbstractMessage, TestingMessage, Error, Notice, Success, and Warning.
| setData | ( | array | $data = [] | ) |
| setIdentifier | ( | $identifier | ) |
| setIsSticky | ( | $isSticky | ) |
Setter for flag. Whether message is sticky
| bool | $isSticky |
Implemented in AbstractMessage.
| setText | ( | $text | ) |
| toString | ( | ) |
| const DEFAULT_IDENTIFIER = 'default_message_identifier' |
Default identifier
Definition at line 19 of file MessageInterface.php.
| const TYPE_ERROR = 'error' |
Error type
Definition at line 24 of file MessageInterface.php.
| const TYPE_NOTICE = 'notice' |
Notice type
Definition at line 34 of file MessageInterface.php.
| const TYPE_SUCCESS = 'success' |
Success type
Definition at line 39 of file MessageInterface.php.
| const TYPE_WARNING = 'warning' |
Warning type
Definition at line 29 of file MessageInterface.php.