accessor for NoticeListItem's Notice
This commit is contained in:
parent
6e01db2c92
commit
12921d6b71
|
@ -720,4 +720,17 @@ class NoticeListItem extends Widget
|
|||
Event::handle('EndCloseNoticeListItemElement', array($this));
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the notice in question
|
||||
*
|
||||
* For hooks, etc., this may be useful
|
||||
*
|
||||
* @return Notice The notice we're showing
|
||||
*/
|
||||
|
||||
function getNotice()
|
||||
{
|
||||
return $this->notice;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user