Writing your own class Adapter
Last updated on
30 April 2025
This module is designed it so that if you install the appropriate PECL module, nothing changes except that stuff gets faster. That's an approach we are using throughout core: Model on a PECL. That provides a known, non-Drupal-specific API (easier for new people coming to Drupal) as well as a very easy way for Sites With Root(tm) to speed up their Drupal site.
If you want to declare your own class adapter to make it working with PHP OAuth library or any implementation you want, simply implements the DrupalOAuthConsumer interface and you’re done.
<?php
class MyOAuthAdapter implements DrupalOAuthConsumer {
}
?>More information about the interface can be found here: http://fr.php.net/manual/en/class.oauth.php
Help improve this page
Page status: Not set
You can:
You can:
- Log in, click Edit, and edit this page
- Log in, click Discuss, update the Page status value, and suggest an improvement
- Log in and create a Documentation issue with your suggestion