Exemplo n.º 1
0
 /**
  * @inheritdoc
  */
 public function render($mode = self::OUTPUT_WEB, $params = array())
 {
     // Set default notification view - when not specified
     if ($this->viewName === null) {
         $this->viewName = 'default';
         $this->viewPath = '@notification/views/notification';
     }
     return parent::render($mode, $params);
 }
Exemplo n.º 2
0
 /**
  * @inheritdoc
  */
 public function getViewParams($params = [])
 {
     $params['clickable'] = $this->clickable;
     return parent::getViewParams($params);
 }