You are here

class FacebookAuthPersistentDataHandler in Open Social 8

Same name and namespace in other branches
  1. 8.9 modules/custom/social_auth_facebook/src/FacebookAuthPersistentDataHandler.php \Drupal\social_auth_facebook\FacebookAuthPersistentDataHandler
  2. 8.2 modules/custom/social_auth_facebook/src/FacebookAuthPersistentDataHandler.php \Drupal\social_auth_facebook\FacebookAuthPersistentDataHandler
  3. 8.3 modules/custom/social_auth_facebook/src/FacebookAuthPersistentDataHandler.php \Drupal\social_auth_facebook\FacebookAuthPersistentDataHandler
  4. 8.4 modules/custom/social_auth_facebook/src/FacebookAuthPersistentDataHandler.php \Drupal\social_auth_facebook\FacebookAuthPersistentDataHandler
  5. 8.5 modules/custom/social_auth_facebook/src/FacebookAuthPersistentDataHandler.php \Drupal\social_auth_facebook\FacebookAuthPersistentDataHandler
  6. 8.6 modules/custom/social_auth_facebook/src/FacebookAuthPersistentDataHandler.php \Drupal\social_auth_facebook\FacebookAuthPersistentDataHandler
  7. 8.7 modules/custom/social_auth_facebook/src/FacebookAuthPersistentDataHandler.php \Drupal\social_auth_facebook\FacebookAuthPersistentDataHandler
  8. 8.8 modules/custom/social_auth_facebook/src/FacebookAuthPersistentDataHandler.php \Drupal\social_auth_facebook\FacebookAuthPersistentDataHandler

Variables are written to and read from session via this class.

By default, Facebook SDK uses native PHP sessions for storing data. We implement Facebook\PersistentData\PersistentDataInterface using Symfony Sessions so that Facebook SDK will use that instead of native PHP sessions. Also SimpleFbConnect reads data from and writes data to session via this class.

Hierarchy

Expanded class hierarchy of FacebookAuthPersistentDataHandler

See also

https://developers.facebook.com/docs/php/PersistentDataInterface/5.0.0

1 string reference to 'FacebookAuthPersistentDataHandler'
social_auth_facebook.services.yml in modules/custom/social_auth_facebook/social_auth_facebook.services.yml
modules/custom/social_auth_facebook/social_auth_facebook.services.yml
1 service uses FacebookAuthPersistentDataHandler
social_auth_facebook.persistent_data_handler in modules/custom/social_auth_facebook/social_auth_facebook.services.yml
\Drupal\social_auth_facebook\FacebookAuthPersistentDataHandler

File

modules/custom/social_auth_facebook/src/FacebookAuthPersistentDataHandler.php, line 19

Namespace

Drupal\social_auth_facebook
View source
class FacebookAuthPersistentDataHandler extends AuthSessionDataHandler implements PersistentDataInterface {

}

Members

Namesort descending Modifiers Type Description Overrides
AuthSessionDataHandler::$session protected property Used for storing the session.
AuthSessionDataHandler::$sessionPrefix protected property Used for storing the session prefix.
AuthSessionDataHandler::get public function Get a value from a persistent data store. Overrides AuthDataHandlerInterface::get
AuthSessionDataHandler::set public function Set a value in the persistent data store. Overrides AuthDataHandlerInterface::set
AuthSessionDataHandler::setPrefix public function Set a key which will be used as prefix for keys in the storage. Overrides AuthDataHandlerInterface::setPrefix
AuthSessionDataHandler::__construct public function Constructor.