public function CrmCoreUserSyncRelation::__construct in CRM Core 8.3
Same name and namespace in other branches
- 8 modules/crm_core_user_sync/src/CrmCoreUserSyncRelation.php \Drupal\crm_core_user_sync\CrmCoreUserSyncRelation::__construct()
Constructs a CrmCoreUserSyncRelation object.
Parameters
\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.
\Drupal\crm_core_user_sync\CrmCoreUserSyncRelationRules $rules: Relation rules service.
\Drupal\Core\Logger\LoggerChannelInterface $logger: Logger channel.
File
- modules/
crm_core_user_sync/ src/ CrmCoreUserSyncRelation.php, line 71
Class
- CrmCoreUserSyncRelation
- Relation service.
Namespace
Drupal\crm_core_user_syncCode
public function __construct(EntityTypeManagerInterface $entity_type_manager, CrmCoreUserSyncRelationRules $rules, LoggerChannelInterface $logger, AccountProxyInterface $current_user) {
$this->entityTypeManager = $entity_type_manager;
$this->relationStorage = $entity_type_manager
->getStorage('crm_core_user_sync_relation');
$this->individualStorage = $entity_type_manager
->getStorage('crm_core_individual');
$this->rules = $rules;
$this->logger = $logger;
$this->currentUser = $current_user;
}