function IncidentReportEvent::__construct

Same name in other branches
  1. 4.0.x modules/events_example/src/Event/IncidentReportEvent.php \Drupal\events_example\Event\IncidentReportEvent::__construct()

Constructs an incident report event object.

Parameters

string $type: The incident report type.

string $report: A detailed description of the incident provided by the reporter.

File

modules/events_example/src/Event/IncidentReportEvent.php, line 44

Class

IncidentReportEvent
Wraps a incident report event for event subscribers.

Namespace

Drupal\events_example\Event

Code

public function __construct($type, $report) {
    $this->type = $type;
    $this->report = $report;
}