interface CrmCoreUserSyncRelationInterface 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
CrmCoreUserSyncRelation service.
Hierarchy
- interface \Drupal\crm_core_user_sync\CrmCoreUserSyncRelationInterface
Expanded class hierarchy of CrmCoreUserSyncRelationInterface
All classes that implement CrmCoreUserSyncRelationInterface
4 files declare their use of CrmCoreUserSyncRelationInterface
- EditOwnContactInformationBlock.php in modules/
crm_core_user_sync/ src/ Plugin/ Block/ EditOwnContactInformationBlock.php - RelationLookup.php in modules/
crm_core_user_sync/ src/ Plugin/ migrate/ process/ RelationLookup.php - RequestSubscriber.php in modules/
crm_core_user_sync/ src/ EventSubscriber/ RequestSubscriber.php - RequestSubscriberTest.php in modules/
crm_core_user_sync/ tests/ src/ Unit/ RequestSubscriberTest.php
File
- modules/
crm_core_user_sync/ src/ CrmCoreUserSyncRelationInterface.php, line 11
Namespace
Drupal\crm_core_user_syncView source
interface CrmCoreUserSyncRelationInterface {
/**
* Retrieves the individual ID from the user ID.
*
* @return int|null
* Individual ID, if relation exists.
*/
public function getIndividualIdFromUserId($user_id);
/**
* Retrieves the user ID from the individual ID.
*
* @return int|null
* User ID, if relation exists.
*/
public function getUserIdFromIndividualId($individual_id);
/**
* Retrieves the relation ID from the user ID.
*
* @return int|null
* Relation ID, if exists.
*/
public function getRelationIdFromUserId($user_id);
/**
* Retrieves the relation ID from the individual ID.
*
* @return int|null
* Relation ID, if exists.
*/
public function getRelationIdFromIndividualId($individual_id);
/**
* Synchronizes user and contact.
*
* @param \Drupal\user\UserInterface $account
* Account to be synchronized. Programmatically created accounts can
* override default behavior by setting
* $account->crm_core_no_auto_sync = TRUE.
* @param \Drupal\crm_core_contact\IndividualInterface $individual
* Contact to be associated with $account.
*
* @return \Drupal\crm_core_contact\ContactInterface
* A contact object.
*
* @throws \Drupal\Core\Entity\EntityStorageException
*/
public function relate(UserInterface $account, IndividualInterface $individual = NULL);
}
Members
Name![]() |
Modifiers | Type | Description | Overrides |
---|---|---|---|---|
CrmCoreUserSyncRelationInterface:: |
public | function | Retrieves the individual ID from the user ID. | 1 |
CrmCoreUserSyncRelationInterface:: |
public | function | Retrieves the relation ID from the individual ID. | 1 |
CrmCoreUserSyncRelationInterface:: |
public | function | Retrieves the relation ID from the user ID. | 1 |
CrmCoreUserSyncRelationInterface:: |
public | function | Retrieves the user ID from the individual ID. | 1 |
CrmCoreUserSyncRelationInterface:: |
public | function | Synchronizes user and contact. | 1 |