You are here

public function EntityPreforwardEvent::__construct in Forward 8

Same name and namespace in other branches
  1. 8.3 src/Event/EntityPreforwardEvent.php \Drupal\forward\Event\EntityPreforwardEvent::__construct()
  2. 8.2 src/Event/EntityPreforwardEvent.php \Drupal\forward\Event\EntityPreforwardEvent::__construct()
  3. 4.x src/Event/EntityPreforwardEvent.php \Drupal\forward\Event\EntityPreforwardEvent::__construct()
  4. 4.0.x src/Event/EntityPreforwardEvent.php \Drupal\forward\Event\EntityPreforwardEvent::__construct()

Constructs the object.

File

src/Event/EntityPreforwardEvent.php, line 40

Class

EntityPreforwardEvent
Event that is fired when an entity is forwarded.

Namespace

Drupal\forward\Event

Code

public function __construct(UserInterface $account, EntityInterface $entity, array $arguments) {
  $this->account = $account;
  $this->entity = $entity;
  $this->arguments = $arguments;
}