You are here

private function DefaultFieldComparator::makeResultArray in Changed Fields API 8.2

Same name and namespace in other branches
  1. 8.3 src/Plugin/FieldComparator/DefaultFieldComparator.php \Drupal\changed_fields\Plugin\FieldComparator\DefaultFieldComparator::makeResultArray()
  2. 8 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 186
Contains DefaultFieldComparator.php.

Class

DefaultFieldComparator
Plugin annotation @Plugin( id = "default_field_comparator" )

Namespace

Drupal\changed_fields\Plugin\FieldComparator

Code

private function makeResultArray(array $oldValue, array $newValue) {
  return [
    'old_value' => $oldValue,
    'new_value' => $newValue,
  ];
}