dolibarr  17.0.3
DolMessagesCollector.php
1 <?php
2 
3 use \DebugBar\DataCollector\MessagesCollector;
4 
9 class DolMessagesCollector extends MessagesCollector
10 {
16  public function getWidgets()
17  {
18  global $langs;
19 
20  $title = $langs->transnoentities('Messages');
21  $name = $this->getName();
22 
23  return array(
24  "$title" => array(
25  "icon" => "list-alt",
26  "widget" => "PhpDebugBar.Widgets.MessagesWidget",
27  "map" => "$name.messages",
28  "default" => "[]"
29  ),
30  "$title:badge" => array(
31  "map" => "$name.count",
32  "default" => "null"
33  )
34  );
35  }
36 }
DolMessagesCollector\getWidgets
getWidgets()
Return widget settings.
Definition: DolMessagesCollector.php:16
DolMessagesCollector
DolMessagesCollector class.
Definition: DolMessagesCollector.php:9