You are here

public function SocialProfileTagService::__construct in Open Social 10.3.x

Same name and namespace in other branches
  1. 10.2.x modules/social_features/social_profile/src/SocialProfileTagService.php \Drupal\social_profile\SocialProfileTagService::__construct()

SocialTaggingService constructor.

Parameters

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The config factory service.

\Drupal\Core\Language\LanguageManagerInterface $language_manager: The language manager.

File

modules/social_features/social_profile/src/SocialProfileTagService.php, line 49

Class

SocialProfileTagService
Provide a service for profile tagging.

Namespace

Drupal\social_profile

Code

public function __construct(EntityTypeManagerInterface $entity_type_manager, ConfigFactoryInterface $config_factory, LanguageManagerInterface $language_manager) {
  $this->taxonomyStorage = $entity_type_manager
    ->getStorage('taxonomy_term');
  $this->profileConfig = $config_factory
    ->get('social_profile.settings');
  $this->languageManager = $language_manager;
}