public function FieldComparatorInterface::getConflictType in Conflict 8.2
Returns the conflict type for a field.
Parameters
\Drupal\Core\Field\FieldItemListInterface $local: The local field item list to compare.
\Drupal\Core\Field\FieldItemListInterface $server: The server field item list to compare.
\Drupal\Core\Field\FieldItemListInterface $original: The original field item list, from which local and the server emerged.
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
string|null The conflict type or NULL if none.
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 FieldComparatorInterface::getConflictType()
- FieldComparatorDefault::getConflictType in src/
Plugin/ Conflict/ FieldComparator/ FieldComparatorDefault.php - Returns the conflict type for a field.
File
- src/
FieldComparatorInterface.php, line 70
Class
Namespace
Drupal\conflictCode
public function getConflictType(FieldItemListInterface $local, FieldItemListInterface $server, FieldItemListInterface $original, $langcode, $entity_type_id, $bundle, $field_type, $field_name);