You are here

private function SocialTourController::setData in Open Social 8.6

Same name and namespace in other branches
  1. 8.9 modules/custom/social_tour/src/SocialTourController.php \Drupal\social_tour\SocialTourController::setData()
  2. 8 modules/custom/social_tour/src/SocialTourController.php \Drupal\social_tour\SocialTourController::setData()
  3. 8.2 modules/custom/social_tour/src/SocialTourController.php \Drupal\social_tour\SocialTourController::setData()
  4. 8.3 modules/custom/social_tour/src/SocialTourController.php \Drupal\social_tour\SocialTourController::setData()
  5. 8.4 modules/custom/social_tour/src/SocialTourController.php \Drupal\social_tour\SocialTourController::setData()
  6. 8.5 modules/custom/social_tour/src/SocialTourController.php \Drupal\social_tour\SocialTourController::setData()
  7. 8.7 modules/custom/social_tour/src/SocialTourController.php \Drupal\social_tour\SocialTourController::setData()
  8. 8.8 modules/custom/social_tour/src/SocialTourController.php \Drupal\social_tour\SocialTourController::setData()
  9. 10.3.x modules/custom/social_tour/src/SocialTourController.php \Drupal\social_tour\SocialTourController::setData()
  10. 10.0.x modules/custom/social_tour/src/SocialTourController.php \Drupal\social_tour\SocialTourController::setData()
  11. 10.1.x modules/custom/social_tour/src/SocialTourController.php \Drupal\social_tour\SocialTourController::setData()
  12. 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 178

Class

SocialTourController
Class SocialTourController.

Namespace

Drupal\social_tour

Code

private function setData($disabled = TRUE) {
  $this->userData
    ->set('social_tour', $this->currentUser
    ->id(), 'onboarding_disabled', $disabled);
}