public function SocialTaggingService::profileActive in Open Social 10.1.x
Same name and namespace in other branches
- 10.3.x modules/social_features/social_tagging/src/SocialTaggingService.php \Drupal\social_tagging\SocialTaggingService::profileActive()
- 10.0.x modules/social_features/social_tagging/src/SocialTaggingService.php \Drupal\social_tagging\SocialTaggingService::profileActive()
- 10.2.x modules/social_features/social_tagging/src/SocialTaggingService.php \Drupal\social_tagging\SocialTaggingService::profileActive()
Returns whether the feature is turned on for profiles or not.
Return value
bool Whether tagging is turned on or not for profiles.
File
- modules/
social_features/ social_tagging/ src/ SocialTaggingService.php, line 83
Class
- SocialTaggingService
- Provides a custom tagging service.
Namespace
Drupal\social_taggingCode
public function profileActive() {
return (bool) $this->configFactory
->get('social_tagging.settings')
->get('tag_type_profile');
}