You are here

public function SocialTourController::__construct in Open Social 10.0.x

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.4 modules/custom/social_tour/src/SocialTourController.php \Drupal\social_tour\SocialTourController::__construct()
  6. 8.5 modules/custom/social_tour/src/SocialTourController.php \Drupal\social_tour\SocialTourController::__construct()
  7. 8.6 modules/custom/social_tour/src/SocialTourController.php \Drupal\social_tour\SocialTourController::__construct()
  8. 8.7 modules/custom/social_tour/src/SocialTourController.php \Drupal\social_tour\SocialTourController::__construct()
  9. 8.8 modules/custom/social_tour/src/SocialTourController.php \Drupal\social_tour\SocialTourController::__construct()
  10. 10.3.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.

Parameters

\Drupal\user\UserDataInterface $user_data: The user data.

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The configuration factory.

\Drupal\Core\Session\AccountProxyInterface $current_user: The current user service.

\Drupal\Core\Path\PathValidatorInterface $path_validator: The path validator.

\Drupal\Core\Routing\RedirectDestinationInterface $redirect_destination: The redirect destination helper.

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.

File

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

Class

SocialTourController
Class SocialTourController.

Namespace

Drupal\social_tour

Code

public function __construct(UserDataInterface $user_data, ConfigFactoryInterface $config_factory, AccountProxyInterface $current_user, PathValidatorInterface $path_validator, RedirectDestinationInterface $redirect_destination, EntityTypeManagerInterface $entity_type_manager) {

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