public function ZoneMock::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
- tests/
modules/ cloudflare_form_tester/ src/ Mocks/ ZoneMock.php, line 129
Class
- ZoneMock
- Zone methods for CloudFlare.
Namespace
Drupal\cloudflare_form_tester\MocksCode
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;
}
}