You are here

public function ReplicationContentDataAlterEvent::__construct in Replication 8

Same name and namespace in other branches
  1. 8.2 src/Event/ReplicationContentDataAlterEvent.php \Drupal\replication\Event\ReplicationContentDataAlterEvent::__construct()

ReplicationContentDataAlterEvent constructor.

Parameters

ContentEntityInterface $entity:

array $data:

$format:

array $context:

File

src/Event/ReplicationContentDataAlterEvent.php, line 46

Class

ReplicationContentDataAlterEvent
Event instance for altering normalized content entity data.

Namespace

Drupal\replication\Event

Code

public function __construct(ContentEntityInterface $entity, array $data, $format, array $context) {
  $this->entity = $entity;
  $this->data = $data;
  $this->format = $format;
  $this->context = $context;
}