public function Zone::updateZoneSettings in CloudFlare 8
Updates a zone's settings from CloudFlare's API.
Parameters
\CloudFlarePhpSdk\ApiTypes\Zone\ZoneSettings $zone_settings: The updated settings object.
Overrides CloudFlareZoneInterface::updateZoneSettings
File
- src/
Zone.php, line 156
Class
- Zone
- Zone methods for CloudFlare.
Namespace
Drupal\cloudflareCode
public function updateZoneSettings(ZoneSettings $zone_settings) {
$this->cloudFlareComposerDependenciesCheck
->assert();
if (!$this->validCredentials) {
return;
}
try {
$this->zoneApi
->updateZone($zone_settings);
$this->state
->incrementApiRateCount();
} catch (CloudFlareException $e) {
$this->logger
->error($e
->getMessage());
throw $e;
}
}