You are here

public function ReplicationLog::setHistory in Replication 8

Same name and namespace in other branches
  1. 8.2 src/Entity/ReplicationLog.php \Drupal\replication\Entity\ReplicationLog::setHistory()

Sets the entire history.

Parameters

array $history: List containing replication history items.

Return value

$this

Overrides ReplicationLogInterface::setHistory

File

src/Entity/ReplicationLog.php, line 42

Class

ReplicationLog
The replication log entity type.

Namespace

Drupal\replication\Entity

Code

public function setHistory($history) {
  $this
    ->set('history', $history);
  return $this;
}