public function CrmCoreUserSyncRelationInterface::relate in CRM Core 8.3
Same name and namespace in other branches
- 8 modules/crm_core_user_sync/src/CrmCoreUserSyncRelationInterface.php \Drupal\crm_core_user_sync\CrmCoreUserSyncRelationInterface::relate()
Synchronizes user and contact.
Parameters
\Drupal\user\UserInterface $account: Account to be synchronized. Programmatically created accounts can override default behavior by setting $account->crm_core_no_auto_sync = TRUE.
\Drupal\crm_core_contact\IndividualInterface $individual: Contact to be associated with $account.
Return value
\Drupal\crm_core_contact\ContactInterface A contact object.
Throws
\Drupal\Core\Entity\EntityStorageException
1 method overrides CrmCoreUserSyncRelationInterface::relate()
- CrmCoreUserSyncRelation::relate in modules/
crm_core_user_sync/ src/ CrmCoreUserSyncRelation.php - Synchronizes user and contact.
File
- modules/
crm_core_user_sync/ src/ CrmCoreUserSyncRelationInterface.php, line 60
Class
- CrmCoreUserSyncRelationInterface
- CrmCoreUserSyncRelation service.
Namespace
Drupal\crm_core_user_syncCode
public function relate(UserInterface $account, IndividualInterface $individual = NULL);