public function SocialProfileTagService::hasContent in Open Social 10.2.x
Same name and namespace in other branches
- 10.3.x modules/social_features/social_profile/src/SocialProfileTagService.php \Drupal\social_profile\SocialProfileTagService::hasContent()
Returns if there are any taxonomy items available.
Return value
bool If there are tags available.
Overrides SocialProfileTagServiceInterface::hasContent
File
- modules/
social_features/ social_profile/ src/ SocialProfileTagService.php, line 69
Class
- SocialProfileTagService
- Provide a service for profile tagging.
Namespace
Drupal\social_profileCode
public function hasContent() {
if (count($this
->getCategories()) == 0) {
return FALSE;
}
return TRUE;
}