public function SocialTaggingService::useCategoryParent 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::useCategoryParent()
- 10.0.x modules/social_features/social_tagging/src/SocialTaggingService.php \Drupal\social_tagging\SocialTaggingService::useCategoryParent()
- 10.2.x modules/social_features/social_tagging/src/SocialTaggingService.php \Drupal\social_tagging\SocialTaggingService::useCategoryParent()
Returns whether using a parent of categories is allowed.
Return value
bool Whether using categories parent is turned on or not..
File
- modules/
social_features/ social_tagging/ src/ SocialTaggingService.php, line 122
Class
- SocialTaggingService
- Provides a custom tagging service.
Namespace
Drupal\social_taggingCode
public function useCategoryParent() {
return (bool) ($this
->active() && $this->configFactory
->get('social_tagging.settings')
->get('use_category_parent'));
}