You are here

function _social_tour_check in Open Social 8.5

Same name and namespace in other branches
  1. 8.9 modules/custom/social_tour/social_tour.module \_social_tour_check()
  2. 8 modules/custom/social_tour/social_tour.module \_social_tour_check()
  3. 8.2 modules/custom/social_tour/social_tour.module \_social_tour_check()
  4. 8.3 modules/custom/social_tour/social_tour.module \_social_tour_check()
  5. 8.4 modules/custom/social_tour/social_tour.module \_social_tour_check()
  6. 8.6 modules/custom/social_tour/social_tour.module \_social_tour_check()
  7. 8.7 modules/custom/social_tour/social_tour.module \_social_tour_check()
  8. 8.8 modules/custom/social_tour/social_tour.module \_social_tour_check()
  9. 10.3.x modules/custom/social_tour/social_tour.module \_social_tour_check()
  10. 10.0.x modules/custom/social_tour/social_tour.module \_social_tour_check()
  11. 10.1.x modules/custom/social_tour/social_tour.module \_social_tour_check()
  12. 10.2.x modules/custom/social_tour/social_tour.module \_social_tour_check()

Check some stuff before doing anything with these tours.

1 call to _social_tour_check()
_social_tour_init in modules/custom/social_tour/social_tour.module
Static wrapper, since this is called approx. 8 times per page load.

File

modules/custom/social_tour/social_tour.module, line 240
The Social Tour module.

Code

function _social_tour_check() {

  /** @var \Drupal\social_tour\SocialTourController $onboarding */
  $onboarding = \Drupal::service('social_tour.onboarding');
  return $onboarding
    ->onboardingEnabled();
}