You are here

class ReplicationEvent in Workspace 8

Wraps a replication for event listeners.

Hierarchy

  • class \Drupal\workspace\Event\ReplicationEvent extends \Symfony\Component\EventDispatcher\Event

Expanded class hierarchy of ReplicationEvent

4 files declare their use of ReplicationEvent
ReplicationFinished.php in src/EventSubscriber/ReplicationFinished.php
ReplicatorManager.php in src/ReplicatorManager.php
ReplicatorTest.php in tests/src/Functional/ReplicatorTest.php
WorkspaceReplication.php in src/Plugin/QueueWorker/WorkspaceReplication.php

File

src/Event/ReplicationEvent.php, line 11

Namespace

Drupal\workspace\Event
View source
class ReplicationEvent extends Event {

  /**
   * The replication object.
   *
   * @var \Drupal\workspace\Entity\Replication
   */
  protected $replication;

  /**
   * ReplicationEvent constructor.
   *
   * @param \Drupal\workspace\Entity\Replication $replication
   *   The Replication object.
   */
  public function __construct(Replication $replication) {
    $this->replication = $replication;
  }

  /**
   * Gets the replication.
   *
   * @return \Drupal\workspace\Entity\Replication
   *   Return replication object.
   */
  public function getReplication() {
    return $this->replication;
  }

}

Members

Namesort descending Modifiers Type Description Overrides
ReplicationEvent::$replication protected property The replication object.
ReplicationEvent::getReplication public function Gets the replication.
ReplicationEvent::__construct public function ReplicationEvent constructor.