You are here

public function MergeStrategyBase::resolveConflicts in Conflict 8.2

Discovers conflicts on entities.

Parameters

\Drupal\conflict\Event\EntityConflictResolutionEvent: The entity conflict resolution event.

File

src/ConflictResolution/MergeStrategyBase.php, line 17

Class

MergeStrategyBase

Namespace

Drupal\conflict\ConflictResolution

Code

public function resolveConflicts(EntityConflictResolutionEvent $event) {
  if ($this
    ->isEnabled($event)) {
    $local_entity = $event
      ->getLocalEntity();
    if ($local_entity instanceof ContentEntityInterface) {
      $this
        ->resolveConflictsContentEntity($event);
    }
  }
}