You are here

public function SocialTourController::__construct in Open Social 8.4

Same name and namespace in other branches
  1. 8.9 modules/custom/social_tour/src/SocialTourController.php \Drupal\social_tour\SocialTourController::__construct()
  2. 8 modules/custom/social_tour/src/SocialTourController.php \Drupal\social_tour\SocialTourController::__construct()
  3. 8.2 modules/custom/social_tour/src/SocialTourController.php \Drupal\social_tour\SocialTourController::__construct()
  4. 8.3 modules/custom/social_tour/src/SocialTourController.php \Drupal\social_tour\SocialTourController::__construct()
  5. 8.5 modules/custom/social_tour/src/SocialTourController.php \Drupal\social_tour\SocialTourController::__construct()
  6. 8.6 modules/custom/social_tour/src/SocialTourController.php \Drupal\social_tour\SocialTourController::__construct()
  7. 8.7 modules/custom/social_tour/src/SocialTourController.php \Drupal\social_tour\SocialTourController::__construct()
  8. 8.8 modules/custom/social_tour/src/SocialTourController.php \Drupal\social_tour\SocialTourController::__construct()
  9. 10.3.x modules/custom/social_tour/src/SocialTourController.php \Drupal\social_tour\SocialTourController::__construct()
  10. 10.0.x modules/custom/social_tour/src/SocialTourController.php \Drupal\social_tour\SocialTourController::__construct()
  11. 10.1.x modules/custom/social_tour/src/SocialTourController.php \Drupal\social_tour\SocialTourController::__construct()
  12. 10.2.x modules/custom/social_tour/src/SocialTourController.php \Drupal\social_tour\SocialTourController::__construct()

SocialTourController constructor.

File

modules/custom/social_tour/src/SocialTourController.php, line 47

Class

SocialTourController
Class SocialTourController.

Namespace

Drupal\social_tour

Code

public function __construct(UserData $user_data, ConfigFactory $config_factory, AccountProxy $current_user) {

  // We needs it.
  $this->userData = $user_data;
  $this->configFactory = $config_factory
    ->get('social_tour.settings');
  $this->currentUser = $current_user;
}