public function UserAuthenticator::setDestination in Social Auth 8.2
Same name and namespace in other branches
- 3.x src/User/UserAuthenticator.php \Drupal\social_auth\User\UserAuthenticator::setDestination()
 
Sets the destination parameter path for redirection after login.
Parameters
string $destination: The path to redirect to.
File
- src/
User/ UserAuthenticator.php, line 94  
Class
- UserAuthenticator
 - Manages Drupal authentication tasks for Social Auth.
 
Namespace
Drupal\social_auth\UserCode
public function setDestination($destination) {
  $this->dataHandler
    ->set('login_destination', $destination);
}