public function SocialPrivateMessageService::deleteUserDataThreadInfo in Open Social 8.9
Same name and namespace in other branches
- 8 modules/social_features/social_private_message/src/Service/SocialPrivateMessageService.php \Drupal\social_private_message\Service\SocialPrivateMessageService::deleteUserDataThreadInfo()
- 8.2 modules/social_features/social_private_message/src/Service/SocialPrivateMessageService.php \Drupal\social_private_message\Service\SocialPrivateMessageService::deleteUserDataThreadInfo()
- 8.3 modules/social_features/social_private_message/src/Service/SocialPrivateMessageService.php \Drupal\social_private_message\Service\SocialPrivateMessageService::deleteUserDataThreadInfo()
- 8.4 modules/social_features/social_private_message/src/Service/SocialPrivateMessageService.php \Drupal\social_private_message\Service\SocialPrivateMessageService::deleteUserDataThreadInfo()
- 8.5 modules/social_features/social_private_message/src/Service/SocialPrivateMessageService.php \Drupal\social_private_message\Service\SocialPrivateMessageService::deleteUserDataThreadInfo()
- 8.6 modules/social_features/social_private_message/src/Service/SocialPrivateMessageService.php \Drupal\social_private_message\Service\SocialPrivateMessageService::deleteUserDataThreadInfo()
- 8.7 modules/social_features/social_private_message/src/Service/SocialPrivateMessageService.php \Drupal\social_private_message\Service\SocialPrivateMessageService::deleteUserDataThreadInfo()
- 8.8 modules/social_features/social_private_message/src/Service/SocialPrivateMessageService.php \Drupal\social_private_message\Service\SocialPrivateMessageService::deleteUserDataThreadInfo()
- 10.3.x modules/social_features/social_private_message/src/Service/SocialPrivateMessageService.php \Drupal\social_private_message\Service\SocialPrivateMessageService::deleteUserDataThreadInfo()
- 10.0.x modules/social_features/social_private_message/src/Service/SocialPrivateMessageService.php \Drupal\social_private_message\Service\SocialPrivateMessageService::deleteUserDataThreadInfo()
- 10.1.x modules/social_features/social_private_message/src/Service/SocialPrivateMessageService.php \Drupal\social_private_message\Service\SocialPrivateMessageService::deleteUserDataThreadInfo()
- 10.2.x modules/social_features/social_private_message/src/Service/SocialPrivateMessageService.php \Drupal\social_private_message\Service\SocialPrivateMessageService::deleteUserDataThreadInfo()
Remove the thread info from the user_data.
Parameters
\Drupal\Core\Entity\EntityBase $entity: The thread entity.
File
- modules/
social_features/ social_private_message/ src/ Service/ SocialPrivateMessageService.php, line 55
Class
- SocialPrivateMessageService
- Class SocialPrivateMessageService.
Namespace
Drupal\social_private_message\ServiceCode
public function deleteUserDataThreadInfo(EntityBase $entity) {
$this->userData
->delete('private_message', $this->currentUser
->id(), 'private_message_thread:' . $entity
->id());
}