public function FieldComparatorManagerInterface::hasChanged in Conflict 8.2
Compares two field item lists.
Parameters
\Drupal\Core\Field\FieldItemListInterface $items_a: The first field item list to compare.
\Drupal\Core\Field\FieldItemListInterface $items_a: The second field item list to compare.
string $langcode: The language code of the entity translation being checked.
string $entity_type_id: The entity type ID.
string $bundle: The entity bundle ID.
string $field_type: The field type.
string $field_name: The field name.
Return value
bool TRUE, if the items have changed, FALSE otherwise.
Throws
\Exception An exception will be thrown if for some reason even the default field comparator has not been added to the field comparators list.
1 method overrides FieldComparatorManagerInterface::hasChanged()
- FieldComparatorManager::hasChanged in src/
FieldComparatorManager.php - Compares two field item lists.
File
- src/
FieldComparatorManagerInterface.php, line 35
Class
Namespace
Drupal\conflictCode
public function hasChanged(FieldItemListInterface $items_a, FieldItemListInterface $items_b, $langcode, $entity_type_id, $bundle, $field_type, $field_name);