You are here

public function BasePathEvent::__construct in Hook Event Dispatcher 8

BaseEntityEvent constructor.

Parameters

array $fields: The Entity.

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

File

src/Event/Path/BasePathEvent.php, line 44

Class

BasePathEvent
Class BasePathEvent.

Namespace

Drupal\hook_event_dispatcher\Event\Path

Code

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