public function ContentEntityConflictHandler::__construct in Conflict 8.2
EntityConflictResolutionHandlerDefault constructor.
Parameters
\Drupal\Core\Entity\EntityTypeInterface $entity_type: The entity type.
\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.
\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler.
\Drupal\Core\KeyValueStore\KeyValueStoreInterface $key_value_original_entity: The key value factory for storing the conflict original entity.
\Drupal\conflict\FieldComparatorManagerInterface $field_comparator_manager: The field comparator manager.
\Drupal\conflict\ConflictResolver\ConflictResolverManagerInterface $conflict_manager: The conflict manager.
File
- src/
Entity/ ContentEntityConflictHandler.php, line 99
Class
Namespace
Drupal\conflict\EntityCode
public function __construct(EntityTypeInterface $entity_type, EntityTypeManagerInterface $entity_type_manager, ModuleHandlerInterface $module_handler, KeyValueStoreInterface $key_value_original_entity, FieldComparatorManagerInterface $field_comparator_manager, ConflictResolverManagerInterface $conflict_manager) {
$this->entityType = $entity_type;
$this->entityTypeManager = $entity_type_manager;
$this->storage = $entity_type_manager
->getStorage($entity_type
->id());
$this->moduleHandler = $module_handler;
$this->keyValueOriginalEntity = $key_value_original_entity;
$this->fieldComparatorManager = $field_comparator_manager;
$this->conflictManager = $conflict_manager;
}