public static function DrupalClient::get in Facebook Instant Articles 7
Same name and namespace in other branches
- 7.2 modules/fb_instant_articles_api/src/DrupalClient.php \Drupal\fb_instant_articles_api\DrupalClient::get()
Get an Instant Articles API client instance configured with sitewide Drupal settings
2 calls to DrupalClient::get()
- fb_instant_articles_api_rules_import_article in modules/
fb_instant_articles_api_rules/ fb_instant_articles_api_rules.module - Implementation of a Facebook instant article import.
- fb_instant_articles_api_rules_remove_article in modules/
fb_instant_articles_api_rules/ fb_instant_articles_api_rules.module - Implementation of a Facebook instant article remove.
File
- modules/
fb_instant_articles_api/ src/ DrupalClient.php, line 34 - Contains \Drupal\fb_instant_articles_api\DrupalClient.
Class
- DrupalClient
- Encapsulates any Drupal-specific logic when using the Client.
Namespace
Drupal\fb_instant_articles_apiCode
public static function get() {
$appID = variable_get('fb_instant_articles_api_app_id');
$appSecret = variable_get('fb_instant_articles_api_app_secret');
$accessToken = variable_get('fb_instant_articles_api_access_token');
$pageID = variable_get('fb_instant_articles_page_id');
$developmentMode = (bool) variable_get('fb_instant_articles_api_development_mode', FALSE);
return parent::create($appID, $appSecret, $accessToken, $pageID, $developmentMode);
}