You are here

public function CorrespondingReferenceInterface::synchronizeCorrespondingField in Corresponding Entity References 8.4

Synchronizes a single corresponding field on a corresponding entity.

Parameters

\Drupal\Core\Entity\FieldableEntityInterface $entity: The original entity.

\Drupal\Core\Entity\FieldableEntityInterface $correspondingEntity: The corresponding entity.

$fieldName: The field name.

1 method overrides CorrespondingReferenceInterface::synchronizeCorrespondingField()
CorrespondingReference::synchronizeCorrespondingField in src/Entity/CorrespondingReference.php
Synchronizes a single corresponding field on a corresponding entity.

File

src/Entity/CorrespondingReferenceInterface.php, line 184

Class

CorrespondingReferenceInterface
Defines the interface for corresponding reference config entities.

Namespace

Drupal\cer\Entity

Code

public function synchronizeCorrespondingField(FieldableEntityInterface $entity, FieldableEntityInterface $correspondingEntity, $fieldName);