dolibarr  17.0.4
DolExceptionsCollector.php
1 <?php
2 
3 use \DebugBar\DataCollector\ExceptionsCollector;
4 
9 class DolExceptionsCollector extends ExceptionsCollector
10 {
16  public function getWidgets()
17  {
18  global $langs;
19 
20  $title = $langs->transnoentities('Exceptions');
21 
22  return array(
23  "$title" => array(
24  'icon' => 'bug',
25  'widget' => 'PhpDebugBar.Widgets.ExceptionsWidget',
26  'map' => 'exceptions.exceptions',
27  'default' => '[]'
28  ),
29  "$title:badge" => array(
30  'map' => 'exceptions.count',
31  'default' => 'null'
32  )
33  );
34  }
35 }
DolExceptionsCollector class.
getWidgets()
Return widget settings.