public function SocialApiDataHandler::get in Social API 8.2
Same name and namespace in other branches
- 3.x src/SocialApiDataHandler.php \Drupal\social_api\SocialApiDataHandler::get()
Gets a session variable by key.
Parameters
string $key: The session variable key.
Return value
mixed The session variable value.
File
- src/
SocialApiDataHandler.php, line 45
Class
- SocialApiDataHandler
- Variables are written to and read from session via this class.
Namespace
Drupal\social_apiCode
public function get($key) {
return $this->session
->get($this
->getSessionPrefix() . $key);
}