You are here

public function Fastly::getSettings in Fastly 7.2

Same name and namespace in other branches
  1. 7 fastly.api.inc \Fastly::getSettings()

Gets the settings for a version.

1 call to Fastly::getSettings()
Fastly::getSetting in ./fastly.api.inc
Gets the settings for a version.

File

./fastly.api.inc, line 93
Contains Faslt class that handles API calls to the Fastly service.

Class

Fastly
Fastly API for Drupal.

Code

public function getSettings() {
  if ($active_version = $this
    ->getActiveVersion()) {
    $result = $this
      ->query('service/' . $this->service_id . '/version/' . $active_version . '/settings');
    return json_decode($result->data);
  }
  return NULL;
}