public function EntityConflictDiscoveryEvent::__construct in Conflict 8.2
Constructs a conflict discovery event object.
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.
1 call to EntityConflictDiscoveryEvent::__construct()
- EntityConflictResolutionEvent::__construct in src/
Event/ EntityConflictResolutionEvent.php - Constructs a conflict discovery event object.
1 method overrides EntityConflictDiscoveryEvent::__construct()
- EntityConflictResolutionEvent::__construct in src/
Event/ EntityConflictResolutionEvent.php - Constructs a conflict discovery event object.
File
- src/
Event/ EntityConflictDiscoveryEvent.php, line 67
Class
Namespace
Drupal\conflict\EventCode
public function __construct(EntityInterface $local, EntityInterface $remote, EntityInterface $base, ParameterBag $context = NULL) {
$this->localEntity = $local;
$this->remoteEntity = $remote;
$this->baseEntity = $base;
$this->context = $context ?? new ParameterBag();
}