public function PathDeleteEvent::__construct in Hook Event Dispatcher 3.x
Same name and namespace in other branches
- 8.2 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\PathCode
public function __construct(array $path) {
parent::__construct($path);
$this->redirect = $path['redirect'] ?? FALSE;
}