You are here

public function PathDeleteEvent::__construct in Hook Event Dispatcher 8.2

Same name and namespace in other branches
  1. 3.x modules/path_event_dispatcher/src/Event/Path/PathDeleteEvent.php \Drupal\path_event_dispatcher\Event\Path\PathDeleteEvent::__construct()

Constructor.

Parameters

array $path: The array structure is identical to that of the return value of \Drupal\Core\Path\AliasStorageInterface::save().

Overrides AbstractPathEvent::__construct

File

modules/path_event_dispatcher/src/Event/Path/PathDeleteEvent.php, line 26

Class

PathDeleteEvent
Class PathDeleteEvent.

Namespace

Drupal\path_event_dispatcher\Event\Path

Code

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