You are here

public function SimpleFbConnectPostLoginManager::getPostLoginPathFromRequest in Simple FB Connect 8.3

Same name and namespace in other branches
  1. 8.2 src/SimpleFbConnectPostLoginManager.php \Drupal\simple_fb_connect\SimpleFbConnectPostLoginManager::getPostLoginPathFromRequest()

Returns the value of postLoginPath query parameter if set.

@returns string|bool Raw query parameter value if set. False otherwise.

File

src/SimpleFbConnectPostLoginManager.php, line 45

Class

SimpleFbConnectPostLoginManager
Contains all logic that is related to post login redirects.

Namespace

Drupal\simple_fb_connect

Code

public function getPostLoginPathFromRequest() {
  if ($query_string = $this->requestContext
    ->getQueryString()) {
    parse_str($query_string, $query_params);
    if (isset($query_params['postLoginPath'])) {
      return $query_params['postLoginPath'];
    }
  }
  return FALSE;
}