interface MergeStrategyInterface in Conflict 8.2
Hierarchy
- interface \Drupal\conflict\ConflictResolution\MergeStrategyInterface extends \Symfony\Component\EventDispatcher\EventSubscriberInterface
Expanded class hierarchy of MergeStrategyInterface
All classes that implement MergeStrategyInterface
File
- src/
ConflictResolution/ MergeStrategyInterface.php, line 8
Namespace
Drupal\conflict\ConflictResolutionView source
interface MergeStrategyInterface extends EventSubscriberInterface {
/**
* Returns the merge strategy ID.
*
* To prevent conflicts the merge strategy ID should be prefixed by the
* provider's name.
*
* @return string
* The merge strategy ID.
*/
public function getMergeStrategyId() : string;
/**
* Resolves conflicts on content entities.
*
* @param \Drupal\conflict\Event\EntityConflictResolutionEvent
* The entity conflict discovery event.
*/
public function resolveConflictsContentEntity(EntityConflictResolutionEvent $event);
/**
* Checks whether this merge strategy is active for the conflict resolution.
*
* @param \Drupal\conflict\Event\EntityConflictResolutionEvent $event
* The conflict resolution event.
*
* @return bool
* TRUE, if the merge strategy is enabled. FALSE, if it is disabled.
*/
public function isEnabled(EntityConflictResolutionEvent $event) : bool;
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
MergeStrategyInterface:: |
public | function | Returns the merge strategy ID. | 2 |
MergeStrategyInterface:: |
public | function | Checks whether this merge strategy is active for the conflict resolution. | 1 |
MergeStrategyInterface:: |
public | function | Resolves conflicts on content entities. | 2 |