You are here

public function AcsfEvent::debug in Acquia Cloud Site Factory Connector 8.2

Same name and namespace in other branches
  1. 8 src/Event/AcsfEvent.php \Drupal\acsf\Event\AcsfEvent::debug()

Produces data that can be used to track and debug an event.

File

src/Event/AcsfEvent.php, line 106

Class

AcsfEvent
ACSF Event.

Namespace

Drupal\acsf\Event

Code

public function debug() {
  $debug = [];
  foreach (array_keys($this->handlers) as $key) {
    foreach ($this->handlers[$key] as $handler) {
      $debug['handlers'][$key][] = [
        'class' => get_class($handler),
        'started' => $handler->started,
        'completed' => $handler->completed,
        'message' => $handler->message,
      ];
    }
  }
  return $debug;
}