private function SocialTourController::setData in Open Social 8
Same name and namespace in other branches
- 8.9 modules/custom/social_tour/src/SocialTourController.php \Drupal\social_tour\SocialTourController::setData()
- 8.2 modules/custom/social_tour/src/SocialTourController.php \Drupal\social_tour\SocialTourController::setData()
- 8.3 modules/custom/social_tour/src/SocialTourController.php \Drupal\social_tour\SocialTourController::setData()
- 8.4 modules/custom/social_tour/src/SocialTourController.php \Drupal\social_tour\SocialTourController::setData()
- 8.5 modules/custom/social_tour/src/SocialTourController.php \Drupal\social_tour\SocialTourController::setData()
- 8.6 modules/custom/social_tour/src/SocialTourController.php \Drupal\social_tour\SocialTourController::setData()
- 8.7 modules/custom/social_tour/src/SocialTourController.php \Drupal\social_tour\SocialTourController::setData()
- 8.8 modules/custom/social_tour/src/SocialTourController.php \Drupal\social_tour\SocialTourController::setData()
- 10.3.x modules/custom/social_tour/src/SocialTourController.php \Drupal\social_tour\SocialTourController::setData()
- 10.0.x modules/custom/social_tour/src/SocialTourController.php \Drupal\social_tour\SocialTourController::setData()
- 10.1.x modules/custom/social_tour/src/SocialTourController.php \Drupal\social_tour\SocialTourController::setData()
- 10.2.x modules/custom/social_tour/src/SocialTourController.php \Drupal\social_tour\SocialTourController::setData()
Set onboarding data value.
Parameters
bool $disabled: Type of bool, either TRUE or FALSE.
3 calls to SocialTourController::setData()
- SocialTourController::disableOnboarding in modules/
custom/ social_tour/ src/ SocialTourController.php - Disable onboarding for current_user by Ajax call.
- SocialTourController::enableOnboarding in modules/
custom/ social_tour/ src/ SocialTourController.php - Enable onboarding for current_user by Ajax call.
- SocialTourController::toggleOnboarding in modules/
custom/ social_tour/ src/ SocialTourController.php - Toggle onboarding.
File
- modules/
custom/ social_tour/ src/ SocialTourController.php, line 141
Class
- SocialTourController
- Class SocialTourController.
Namespace
Drupal\social_tourCode
private function setData($disabled = TRUE) {
$this->userData
->set('social_tour', $this->currentUser
->id(), 'onboarding_disabled', $disabled);
}