You are here

public function SocialTopicController::redirectMyTopics in Open Social 8.9

Same name and namespace in other branches
  1. 8.7 modules/social_features/social_topic/src/Controller/SocialTopicController.php \Drupal\social_topic\Controller\SocialTopicController::redirectMyTopics()
  2. 8.8 modules/social_features/social_topic/src/Controller/SocialTopicController.php \Drupal\social_topic\Controller\SocialTopicController::redirectMyTopics()
  3. 10.3.x modules/social_features/social_topic/src/Controller/SocialTopicController.php \Drupal\social_topic\Controller\SocialTopicController::redirectMyTopics()
  4. 10.0.x modules/social_features/social_topic/src/Controller/SocialTopicController.php \Drupal\social_topic\Controller\SocialTopicController::redirectMyTopics()
  5. 10.1.x modules/social_features/social_topic/src/Controller/SocialTopicController.php \Drupal\social_topic\Controller\SocialTopicController::redirectMyTopics()
  6. 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\Controller

Code

public function redirectMyTopics() {
  return $this
    ->redirect('view.topics.page_profile', [
    'user' => $this
      ->currentUser()
      ->id(),
  ]);
}