You are here

public function IncidentReportEvent::__construct in Examples for Developers 8

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

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;
}