modules/acm/src/User/AccessTokenTrait.php
protected function getAccessToken() {
    $cookies = $_COOKIE;

    if (isset(\Drupal::request()->cookies)) {
      $cookies = \Drupal::request()->cookies->all();
    }

    $cookie_name = 'Drupal_visitor_' . $this->accessTokenCookie;

    if (isset($cookies[$cookie_name])) {
      return $cookies[$cookie_name];
    }

    return NULL;
  }
protected function getAccessToken() {
    $cookies = $_COOKIE;

    if (isset(\Drupal::request()->cookies)) {
      $cookies = \Drupal::request()->cookies->all();
    }

    $cookie_name = 'Drupal_visitor_' . $this->accessTokenCookie;

    if (isset($cookies[$cookie_name])) {
      return $cookies[$cookie_name];
    }

    return NULL;
  }
protected function getAccessToken ( ) { $ cookies = $ _COOKIE ; if ( isset ( \ Drupal :: request ( ) -> cookies ) ) { $ cookies = \ Drupal :: request ( ) -> cookies -> all ( ) ; } $ cookie_name = 'Drupal_visitor_' . $ this -> accessTokenCookie ; if ( isset ( $ cookies [ $ cookie_name ] ) ) { return $ cookies [ $ cookie_name ] ; } return NULL ; }
Gets a user access token.
Gets a user access token .