You are here

public function ConflictTracker::add in Multiversion 8

@inheritDoc

Overrides ConflictTrackerInterface::add

File

src/Workspace/ConflictTracker.php, line 67

Class

ConflictTracker
The Conflict Tracker service.

Namespace

Drupal\multiversion\Workspace

Code

public function add($uuid, array $revision_conflicts, $replace = FALSE) {
  if (!$replace) {
    $current_conflicts = $this
      ->keyValueStore()
      ->get($uuid);
    $revision_conflicts = array_merge($current_conflicts, $revision_conflicts);
  }
  $this
    ->keyValueStore()
    ->set($uuid, $revision_conflicts);
}