You are here

protected function DefaultFieldComparator::extendComparableProperties in Changed Fields API 8.3

Same name and namespace in other branches
  1. 8.2 src/Plugin/FieldComparator/DefaultFieldComparator.php \Drupal\changed_fields\Plugin\FieldComparator\DefaultFieldComparator::extendComparableProperties()

Method that returns extended comparable properties for field type.

Use it if you want to extend comparable properties for a given field type.

Parameters

Drupal\Core\Field\FieldDefinitionInterface $field_definition: Array contains field instance and field base information.

array $properties: Array with properties that we need to use to compare two field values.

Return value

array Array with extended properties that system needs to use to compare two field values depends on core field type.

1 call to DefaultFieldComparator::extendComparableProperties()
DefaultFieldComparator::getComparableProperties in src/Plugin/FieldComparator/DefaultFieldComparator.php
Method that returns comparable properties for existing field type.
1 method overrides DefaultFieldComparator::extendComparableProperties()
ExtendedFieldComparator::extendComparableProperties in examples/changed_fields_extended_field_comparator/src/Plugin/FieldComparator/ExtendedFieldComparator.php
Method that returns extended comparable properties for field type.

File

src/Plugin/FieldComparator/DefaultFieldComparator.php, line 141

Class

DefaultFieldComparator
Provides default field comparator plugin definition.

Namespace

Drupal\changed_fields\Plugin\FieldComparator

Code

protected function extendComparableProperties(FieldDefinitionInterface $field_definition, array $properties) {
  return $properties;
}