public function SocialTaggingService::__construct in Open Social 8.8
Same name and namespace in other branches
- 8.9 modules/social_features/social_tagging/src/SocialTaggingService.php \Drupal\social_tagging\SocialTaggingService::__construct()
- 8 modules/social_features/social_tagging/src/SocialTaggingService.php \Drupal\social_tagging\SocialTaggingService::__construct()
- 8.2 modules/social_features/social_tagging/src/SocialTaggingService.php \Drupal\social_tagging\SocialTaggingService::__construct()
- 8.3 modules/social_features/social_tagging/src/SocialTaggingService.php \Drupal\social_tagging\SocialTaggingService::__construct()
- 8.4 modules/social_features/social_tagging/src/SocialTaggingService.php \Drupal\social_tagging\SocialTaggingService::__construct()
- 8.5 modules/social_features/social_tagging/src/SocialTaggingService.php \Drupal\social_tagging\SocialTaggingService::__construct()
- 8.6 modules/social_features/social_tagging/src/SocialTaggingService.php \Drupal\social_tagging\SocialTaggingService::__construct()
- 8.7 modules/social_features/social_tagging/src/SocialTaggingService.php \Drupal\social_tagging\SocialTaggingService::__construct()
- 10.3.x modules/social_features/social_tagging/src/SocialTaggingService.php \Drupal\social_tagging\SocialTaggingService::__construct()
- 10.0.x modules/social_features/social_tagging/src/SocialTaggingService.php \Drupal\social_tagging\SocialTaggingService::__construct()
- 10.1.x modules/social_features/social_tagging/src/SocialTaggingService.php \Drupal\social_tagging\SocialTaggingService::__construct()
- 10.2.x modules/social_features/social_tagging/src/SocialTaggingService.php \Drupal\social_tagging\SocialTaggingService::__construct()
SocialTaggingService constructor.
Parameters
\Drupal\Core\Entity\EntityTypeManagerInterface $entityTypeManager: Injection of the entityTypeManager.
\Drupal\Core\Config\ConfigFactoryInterface $configFactory: Injection of the configFactory.
\Drupal\Core\Language\LanguageManagerInterface $language_manager: Injection of the languageManager.
Throws
\Drupal\Component\Plugin\Exception\InvalidPluginDefinitionException
\Drupal\Component\Plugin\Exception\PluginNotFoundException
File
- modules/
social_features/ social_tagging/ src/ SocialTaggingService.php, line 50
Class
- SocialTaggingService
- Provides a custom tagging service.
Namespace
Drupal\social_taggingCode
public function __construct(EntityTypeManagerInterface $entityTypeManager, ConfigFactoryInterface $configFactory, LanguageManagerInterface $language_manager) {
$this->termStorage = $entityTypeManager
->getStorage('taxonomy_term');
$this->configFactory = $configFactory;
$this->languageManager = $language_manager;
}