public function SocialApiDataHandler::__construct in Social API 3.x
Same name and namespace in other branches
- 8.2 src/SocialApiDataHandler.php \Drupal\social_api\SocialApiDataHandler::__construct()
Constructor.
Parameters
\Symfony\Component\HttpFoundation\Session\SessionInterface $session: Used for reading data from and writing data to session.
File
- src/
SocialApiDataHandler.php, line 32
Class
- SocialApiDataHandler
- Variables are written to and read from session via this class.
Namespace
Drupal\social_apiCode
public function __construct(SessionInterface $session) {
$this->session = $session;
}