You are here

public function SocialTaggingService::useCategoryParent in Open Social 10.2.x

Same name and namespace in other branches
  1. 10.3.x modules/social_features/social_tagging/src/SocialTaggingService.php \Drupal\social_tagging\SocialTaggingService::useCategoryParent()
  2. 10.0.x modules/social_features/social_tagging/src/SocialTaggingService.php \Drupal\social_tagging\SocialTaggingService::useCategoryParent()
  3. 10.1.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_tagging

Code

public function useCategoryParent() {
  return (bool) ($this
    ->active() && $this->configFactory
    ->get('social_tagging.settings')
    ->get('use_category_parent'));
}