You are here

public function IncidentReportEvent::__construct in Examples for Developers 3.x

Same name and namespace in other branches
  1. 8 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;
}