public function SocialTopicController::redirectMyTopics in Open Social 10.1.x
Same name and namespace in other branches
- 8.9 modules/social_features/social_topic/src/Controller/SocialTopicController.php \Drupal\social_topic\Controller\SocialTopicController::redirectMyTopics()
- 8.7 modules/social_features/social_topic/src/Controller/SocialTopicController.php \Drupal\social_topic\Controller\SocialTopicController::redirectMyTopics()
- 8.8 modules/social_features/social_topic/src/Controller/SocialTopicController.php \Drupal\social_topic\Controller\SocialTopicController::redirectMyTopics()
- 10.3.x modules/social_features/social_topic/src/Controller/SocialTopicController.php \Drupal\social_topic\Controller\SocialTopicController::redirectMyTopics()
- 10.0.x modules/social_features/social_topic/src/Controller/SocialTopicController.php \Drupal\social_topic\Controller\SocialTopicController::redirectMyTopics()
- 10.2.x modules/social_features/social_topic/src/Controller/SocialTopicController.php \Drupal\social_topic\Controller\SocialTopicController::redirectMyTopics()
Redirects users to their topics page.
Return value
\Symfony\Component\HttpFoundation\RedirectResponse Returns a redirect to the topics of the currently logged in user.
1 string reference to 'SocialTopicController::redirectMyTopics'
- social_topic.routing.yml in modules/
social_features/ social_topic/ social_topic.routing.yml - modules/social_features/social_topic/social_topic.routing.yml
File
- modules/
social_features/ social_topic/ src/ Controller/ SocialTopicController.php, line 137
Class
- SocialTopicController
- Returns responses for Social Topic routes.
Namespace
Drupal\social_topic\ControllerCode
public function redirectMyTopics() {
return $this
->redirect('view.topics.page_profile', [
'user' => $this
->currentUser()
->id(),
]);
}