public function onboardingEnabled() {
    // Check if tour is enabled by SM setting.
    if ($this->configFactory->get('social_tour_enabled') == FALSE) {
      return FALSE;
    }

    // Check permissions.
    if (!$this->currentUser->hasPermission('access tour')) {
      return FALSE;
    }

    // Check if current disabled it.
    if ($this->userData->get('social_tour', $this->currentUser->id(), 'onboarding_disabled') == TRUE) {
      return FALSE;
    }
    return TRUE;
  }
public function onboardingEnabled() {
    // Check if tour is enabled by SM setting.
    if ($this->configFactory->get('social_tour_enabled') == FALSE) {
      return FALSE;
    }

    // Check permissions.
    if (!$this->currentUser->hasPermission('access tour')) {
      return FALSE;
    }

    // Check if current disabled it.
    if ($this->userData->get('social_tour', $this->currentUser->id(), 'onboarding_disabled') == TRUE) {
      return FALSE;
    }
    return TRUE;
  }
public function onboardingEnabled ( ) { // Check if tour is enabled by SM setting. if ( $ this -> configFactory -> get ( 'social_tour_enabled' ) == FALSE ) { return FALSE ; } // Check permissions. if ( ! $ this -> currentUser -> hasPermission ( 'access tour' ) ) { return FALSE ; } // Check if current disabled it. if ( $ this -> userData -> get ( 'social_tour' , $ this -> currentUser -> id ( ) , 'onboarding_disabled' ) == TRUE ) { return FALSE ; } return TRUE ; }
Check if onboarding is enabled.

@return bool
Returns either TRUE or FALSE.
Check if onboarding is enabled .