class SimpleMergeResolver in Conflict 8
Hierarchy
- class \Drupal\conflict\SimpleMergeResolver implements ConflictResolverInterface
Expanded class hierarchy of SimpleMergeResolver
1 string reference to 'SimpleMergeResolver'
1 service uses SimpleMergeResolver
File
- src/
SimpleMergeResolver.php, line 7
Namespace
Drupal\conflictView source
class SimpleMergeResolver implements ConflictResolverInterface {
/**
* {@inheritdoc}
*/
public function applies() {
return TRUE;
}
/**
* {@inheritdoc}
*/
public function merge(RevisionableInterface $revision1, RevisionableInterface $revision2, RevisionableInterface $revision3) {
$revid1 = $revision1
->getRevisionId();
$revid2 = $revision2
->getRevisionId();
$revid3 = $revision3
->getRevisionId();
return max($revid1, $revid2, $revid3);
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
SimpleMergeResolver:: |
public | function |
Overrides ConflictResolverInterface:: |
|
SimpleMergeResolver:: |
public | function |
Merges three revisons. Overrides ConflictResolverInterface:: |