You are here

class ReplicateAlterEvent in Replicate 8

Hierarchy

Expanded class hierarchy of ReplicateAlterEvent

2 files declare their use of ReplicateAlterEvent
Replicator.php in src/Replicator.php
ReplicatorTest.php in tests/src/Unit/ReplicatorTest.php

File

src/Events/ReplicateAlterEvent.php, line 7

Namespace

Drupal\replicate\Events
View source
class ReplicateAlterEvent extends ReplicateEventBase {

  /**
   * @var \Drupal\Core\Entity\EntityInterface
   */
  protected $original;
  public function __construct(EntityInterface $entity, EntityInterface $original) {
    parent::__construct($entity);
    $this->original = $original;
  }

  /**
   * @return \Drupal\Core\Entity\EntityInterface
   */
  public function getOriginal() {
    return $this->original;
  }

}

Members