You are here

public function AbstractPathEvent::__construct in Hook Event Dispatcher 3.x

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

AbstractPathEvent constructor.

Parameters

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

1 call to AbstractPathEvent::__construct()
PathDeleteEvent::__construct in modules/path_event_dispatcher/src/Event/Path/PathDeleteEvent.php
Constructor.
1 method overrides AbstractPathEvent::__construct()
PathDeleteEvent::__construct in modules/path_event_dispatcher/src/Event/Path/PathDeleteEvent.php
Constructor.

File

modules/path_event_dispatcher/src/Event/Path/AbstractPathEvent.php, line 45

Class

AbstractPathEvent
Class AbstractPathEvent.

Namespace

Drupal\path_event_dispatcher\Event\Path

Code

public function __construct(array $path) {
  $this->source = $path['source'];
  $this->alias = $path['alias'];
  $this->langcode = $path['langcode'];
  $this->pid = (int) $path['pid'];
}