You are here

public function FieldComparatorInterface::hasChanged in Conflict 8.2

Checks whether the field items have changed.

Parameters

\Drupal\Core\Field\FieldItemListInterface $field_item_list_a: A field item list.

\Drupal\Core\Field\FieldItemListInterface $field_item_list_b: Another field item list.

string $langcode: (optional) The language code of the entity translation being checked.

string $entity_type_id: (optional) The entity type ID.

string $bundle: (optional) The entity bundle.

string $field_type: (optional) The field type.

string $field_name: (optional) The field name.

Return value

bool|null TRUE, if both field item lists are equal, FALSE otherwise. NULL can be returned if this comparator cannot make a decision and the next one should be called.

1 method overrides FieldComparatorInterface::hasChanged()
FieldComparatorDefault::hasChanged in src/Plugin/Conflict/FieldComparator/FieldComparatorDefault.php
Checks whether the field items have changed.

File

src/FieldComparatorInterface.php, line 41

Class

FieldComparatorInterface

Namespace

Drupal\conflict

Code

public function hasChanged(FieldItemListInterface $field_item_list_a, FieldItemListInterface $field_item_list_b, $langcode = NULL, $entity_type_id = NULL, $bundle = NULL, $field_type = NULL, $field_name = NULL);