Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Message.php
Go to the documentation of this file.
1 <?php
7 
14 {
18  protected function _construct()
19  {
20  $this->_init(\Magento\AdminNotification\Model\ResourceModel\System\Message::class);
21  }
22 
28  public function isDisplayed()
29  {
30  return true;
31  }
32 
38  public function getText()
39  {
40  return $this->getData('text');
41  }
42 
48  public function getSeverity()
49  {
50  return $this->_getData('severity');
51  }
52 
58  public function getIdentity()
59  {
60  return $this->_getData('identity');
61  }
62 }
getData($key='', $index=null)
Definition: DataObject.php:119