class diff_builder_service

internal  
 

Diff builder service.

Compares two Item entities and generates a list of differences. Used by the Event Service to populate the audit log.

Constants

private IGNORE_FIELDS

Methods

array
build_diff(item_interface $old, item_interface|null $new)

Generate a list of diff value objects between two item states.

Details

at line 54
array build_diff(item_interface $old, item_interface|null $new)

Generate a list of diff value objects between two item states.

Parameters

item_interface $old

Previous item instance

item_interface|null $new

Updated item instance (null if deleted)

Return Value

array