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\EventView 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
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ReplicationEvent:: |
protected | property | The replication object. | |
ReplicationEvent:: |
public | function | Gets the replication. | |
ReplicationEvent:: |
public | function | ReplicationEvent constructor. |