You are here

public function ConflictResolverManagerInterface::getConflicts in Conflict 8.2

Returns the conflicts between two entities based on their common parent. *

Parameters

\Drupal\Core\Entity\EntityInterface $local: The local part of the comparision - for example the entity built of the user input on an entity form submission. This is basically the active entity object.

\Drupal\Core\Entity\EntityInterface $remote: The remote part of the comparision - for example the current version of the entity from the storage.

\Drupal\Core\Entity\EntityInterface $base: The initial entity version in concurrent editing or the lowest common ancestor in a revision tree scenario.

\Symfony\Component\HttpFoundation\ParameterBag $context: (optional) The context parameter bag.

Return value

array An associative array keyed by the conflicting properties, having as values the corresponding conflict type.

1 method overrides ConflictResolverManagerInterface::getConflicts()
ConflictResolverManager::getConflicts in src/ConflictResolver/ConflictResolverManager.php
Returns the conflicts between two entities based on their common parent. *

File

src/ConflictResolver/ConflictResolverManagerInterface.php, line 64

Class

ConflictResolverManagerInterface
Provides an interface for conflict resolver managers.

Namespace

Drupal\conflict\ConflictResolver

Code

public function getConflicts(EntityInterface $local, EntityInterface $remote, EntityInterface $base, ParameterBag $context = NULL) : array;