getEntityType(); // A list of known revision metadata fields which should be skipped from // the comparision. $fields = [ $entity_type->getKey('revision'), $entity_type->getKey('revision_translation_affected'), ]; $fields = array_merge($fields, array_values($entity_type->getRevisionMetadataKeys())); return $fields; } }