You are here

public function PathDeleteEvent::__construct in Hook Event Dispatcher 8

Constructor.

Parameters

array $fields: The raw database path fields.

Overrides BasePathEvent::__construct

File

src/Event/Path/PathDeleteEvent.php, line 25

Class

PathDeleteEvent
Class PathDeleteEvent.

Namespace

Drupal\hook_event_dispatcher\Event\Path

Code

public function __construct(array $fields) {
  parent::__construct($fields);
  $this->redirect = isset($fields['redirect']) ? $fields['redirect'] : NULL;
}