You are here

public function TwitterAuth::getDataHandler in Open Social 8.4

Same name and namespace in other branches
  1. 8.9 modules/custom/social_auth_twitter/src/Plugin/Network/TwitterAuth.php \Drupal\social_auth_twitter\Plugin\Network\TwitterAuth::getDataHandler()
  2. 8 modules/custom/social_auth_twitter/src/Plugin/Network/TwitterAuth.php \Drupal\social_auth_twitter\Plugin\Network\TwitterAuth::getDataHandler()
  3. 8.2 modules/custom/social_auth_twitter/src/Plugin/Network/TwitterAuth.php \Drupal\social_auth_twitter\Plugin\Network\TwitterAuth::getDataHandler()
  4. 8.3 modules/custom/social_auth_twitter/src/Plugin/Network/TwitterAuth.php \Drupal\social_auth_twitter\Plugin\Network\TwitterAuth::getDataHandler()
  5. 8.5 modules/custom/social_auth_twitter/src/Plugin/Network/TwitterAuth.php \Drupal\social_auth_twitter\Plugin\Network\TwitterAuth::getDataHandler()
  6. 8.6 modules/custom/social_auth_twitter/src/Plugin/Network/TwitterAuth.php \Drupal\social_auth_twitter\Plugin\Network\TwitterAuth::getDataHandler()
  7. 8.7 modules/custom/social_auth_twitter/src/Plugin/Network/TwitterAuth.php \Drupal\social_auth_twitter\Plugin\Network\TwitterAuth::getDataHandler()
  8. 8.8 modules/custom/social_auth_twitter/src/Plugin/Network/TwitterAuth.php \Drupal\social_auth_twitter\Plugin\Network\TwitterAuth::getDataHandler()

Returns an instance of storage that handles data.

Return value

object An instance of the storage that handles the data.

File

modules/custom/social_auth_twitter/src/Plugin/Network/TwitterAuth.php, line 123

Class

TwitterAuth
Defines Social Auth Twitter Network Plugin.

Namespace

Drupal\social_auth_twitter\Plugin\Network

Code

public function getDataHandler() {
  $data_handler = \Drupal::service('social_auth_extra.session_persistent_data_handler');
  $data_handler
    ->setPrefix('social_auth_twitter_');
  return $data_handler;
}