protected function WebTestBase::drupalGetToken

Generate a token for the currently logged in user.

File

drupal/core/modules/simpletest/lib/Drupal/simpletest/WebTestBase.php, line 672
Definition of Drupal\simpletest\WebTestBase.

Class

WebTestBase
Test case for typical Drupal tests.

Namespace

Drupal\simpletest

Code

protected function drupalGetToken($value = '') {
  $private_key = drupal_get_private_key();
  return Crypt::hmacBase64($value, $this->session_id . $private_key);
}