private function DefaultFieldComparator::makeResultArray in Changed Fields API 8
Same name and namespace in other branches
- 8.3 src/Plugin/FieldComparator/DefaultFieldComparator.php \Drupal\changed_fields\Plugin\FieldComparator\DefaultFieldComparator::makeResultArray()
- 8.2 src/Plugin/FieldComparator/DefaultFieldComparator.php \Drupal\changed_fields\Plugin\FieldComparator\DefaultFieldComparator::makeResultArray()
Method that generates result array for DefaultFieldComparator::compareFieldValues().
Parameters
array $oldValue:
array $newValue:
Return value
array
1 call to DefaultFieldComparator::makeResultArray()
- DefaultFieldComparator::compareFieldValues in src/
Plugin/ FieldComparator/ DefaultFieldComparator.php - Method that compares old and new field values.
File
- src/
Plugin/ FieldComparator/ DefaultFieldComparator.php, line 154 - Contains DefaultFieldComparator.php.
Class
- DefaultFieldComparator
- Plugin annotation @Plugin( id = "default_field_comparator" )
Namespace
Drupal\changed_fields\Plugin\FieldComparatorCode
private function makeResultArray(array $oldValue, array $newValue) {
return array(
'old_value' => $oldValue,
'new_value' => $newValue,
);
}