You are here

public function CrmCoreUserSyncRelation::__construct in CRM Core 8

Same name and namespace in other branches
  1. 8.3 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 50

Class

CrmCoreUserSyncRelation
Relation service.

Namespace

Drupal\crm_core_user_sync

Code

public function __construct(EntityTypeManagerInterface $entity_type_manager, CrmCoreUserSyncRelationRules $rules, LoggerChannelInterface $logger) {
  $this->storage = $entity_type_manager
    ->getStorage('crm_core_user_sync_relation');
  $this->rules = $rules;
  $this->logger = $logger;
}