DolExceptionsCollector.php 615 B

1234567891011121314151617181920212223242526272829303132333435
  1. <?php
  2. use \DebugBar\DataCollector\ExceptionsCollector;
  3. /**
  4. * DolExceptionsCollector class
  5. */
  6. class DolExceptionsCollector extends ExceptionsCollector
  7. {
  8. /**
  9. * Return widget settings
  10. *
  11. * @return array Array
  12. */
  13. public function getWidgets()
  14. {
  15. global $langs;
  16. $title = $langs->transnoentities('Exceptions');
  17. return array(
  18. "$title" => array(
  19. 'icon' => 'bug',
  20. 'widget' => 'PhpDebugBar.Widgets.ExceptionsWidget',
  21. 'map' => 'exceptions.exceptions',
  22. 'default' => '[]'
  23. ),
  24. "$title:badge" => array(
  25. 'map' => 'exceptions.count',
  26. 'default' => 'null'
  27. )
  28. );
  29. }
  30. }