event->getExtra(); $section = $data['section']; return "notification-header-{$this->type}-{$section}"; } public function getHeaderMessage() { $msg = parent::getHeaderMessage(); $data = $this->event->getExtra(); $msg->params( $this->getWikiName( reset( $data['wikis'] ) ) ); $msg->numParams( count( $data['wikis'] ) - 1 ); return $msg; } protected function getWikiName( $wiki ) { $foreign = new EchoForeignNotifications( new User ); $data = $foreign->getApiEndpoints( array( $wiki ) ); return $data[$wiki]['title']; } }