public function SocialTourController::enableOnboarding in Open Social 8
Same name and namespace in other branches
- 8.9 modules/custom/social_tour/src/SocialTourController.php \Drupal\social_tour\SocialTourController::enableOnboarding()
- 8.2 modules/custom/social_tour/src/SocialTourController.php \Drupal\social_tour\SocialTourController::enableOnboarding()
- 8.3 modules/custom/social_tour/src/SocialTourController.php \Drupal\social_tour\SocialTourController::enableOnboarding()
- 8.4 modules/custom/social_tour/src/SocialTourController.php \Drupal\social_tour\SocialTourController::enableOnboarding()
- 8.5 modules/custom/social_tour/src/SocialTourController.php \Drupal\social_tour\SocialTourController::enableOnboarding()
- 8.6 modules/custom/social_tour/src/SocialTourController.php \Drupal\social_tour\SocialTourController::enableOnboarding()
- 8.7 modules/custom/social_tour/src/SocialTourController.php \Drupal\social_tour\SocialTourController::enableOnboarding()
- 8.8 modules/custom/social_tour/src/SocialTourController.php \Drupal\social_tour\SocialTourController::enableOnboarding()
- 10.3.x modules/custom/social_tour/src/SocialTourController.php \Drupal\social_tour\SocialTourController::enableOnboarding()
- 10.0.x modules/custom/social_tour/src/SocialTourController.php \Drupal\social_tour\SocialTourController::enableOnboarding()
- 10.1.x modules/custom/social_tour/src/SocialTourController.php \Drupal\social_tour\SocialTourController::enableOnboarding()
- 10.2.x modules/custom/social_tour/src/SocialTourController.php \Drupal\social_tour\SocialTourController::enableOnboarding()
Enable onboarding for current_user by Ajax call.
1 string reference to 'SocialTourController::enableOnboarding'
- social_tour.routing.yml in modules/
custom/ social_tour/ social_tour.routing.yml - modules/custom/social_tour/social_tour.routing.yml
File
- modules/
custom/ social_tour/ src/ SocialTourController.php, line 115
Class
- SocialTourController
- Class SocialTourController.
Namespace
Drupal\social_tourCode
public function enableOnboarding() {
// Save the value in the user_data.
$this
->setData(FALSE);
// Return 200.
return new JsonResponse([
'message' => $this
->t('Onboarding has been enabled.'),
], 200, [
'Content-Type' => 'application/json',
]);
}