You are here

public function ExtendedFieldComparatorObserver::update in Changed Fields API 8.2

Same name and namespace in other branches
  1. 8.3 examples/changed_fields_extended_field_comparator/src/ExtendedFieldComparatorObserver.php \Drupal\changed_fields_extended_field_comparator\ExtendedFieldComparatorObserver::update()
  2. 8 examples/changed_fields_extended_field_comparator/src/ExtendedFieldComparatorObserver.php \Drupal\changed_fields_extended_field_comparator\ExtendedFieldComparatorObserver::update()

File

examples/changed_fields_extended_field_comparator/src/ExtendedFieldComparatorObserver.php, line 33
Contains ExtendedFieldComparatorObserver.php.

Class

ExtendedFieldComparatorObserver
Class ExtendedFieldComparatorObserver.

Namespace

Drupal\changed_fields_extended_field_comparator

Code

public function update(SplSubject $nodeSubject) {
  $node = $nodeSubject
    ->getNode();
  $changedFields = $nodeSubject
    ->getChangedFields();

  // Do something with $node depends on $changedFields.
}