You are here

public static function EntityConflictResolutionEvent::createFromConflictDiscoveryEvent in Conflict 8.2

Creates a conflict resolution event object from a conflict discovery event.

Parameters

\Drupal\conflict\Event\EntityConflictDiscoveryEvent: The conflict discovery event.

\Drupal\Core\Entity\EntityInterface $result: The result entity, on which to apply the result.

Return value

static

File

src/Event/EntityConflictResolutionEvent.php, line 54

Class

EntityConflictResolutionEvent

Namespace

Drupal\conflict\Event

Code

public static function createFromConflictDiscoveryEvent(EntityConflictDiscoveryEvent $event, EntityInterface $result) {
  return new static($event->LocalEntity, $event->RemoteEntity, $event->baseEntity, $result, $event->conflicts, $event->context);
}