interface CrmCoreUserSyncRelationInterface in CRM Core 8
Same name and namespace in other branches
- 8.3 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
3 files declare their use of CrmCoreUserSyncRelationInterface
- EditOwnContactInformationBlock.php in modules/
crm_core_user_sync/ src/ Plugin/ Block/ EditOwnContactInformationBlock.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 contact id for specified user.
*
* @return int|null
* Individual id, if relation exists.
*/
public function getUserIndividualId($user_id);
/**
* Retrieves the user id for specified individual contact.
*
* @return int|null
* User id, if relation exists.
*/
public function getIndividualUserId($individual_id);
/**
* Retrieves the relation for specified user.
*
* @return int|null
* Relation ID, if exists.
*/
public function getUserRelationId($user_id);
/**
* Retrieves the user id for specified individual contact.
*
* @return int|null
* Relation ID, if exists.
*/
public function getIndividualRelationId($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 $contact
* 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 $contact = NULL);
}
Members
Name![]() |
Modifiers | Type | Description | Overrides |
---|---|---|---|---|
CrmCoreUserSyncRelationInterface:: |
public | function | Retrieves the user id for specified individual contact. | 1 |
CrmCoreUserSyncRelationInterface:: |
public | function | Retrieves the user id for specified individual contact. | 1 |
CrmCoreUserSyncRelationInterface:: |
public | function | Retrieves the individual contact id for specified user. | 1 |
CrmCoreUserSyncRelationInterface:: |
public | function | Retrieves the relation for specified user. | 1 |
CrmCoreUserSyncRelationInterface:: |
public | function | Synchronizes user and contact. | 1 |