You are here

public static function BackendInterface::setTemporaryRuntimeError in Acquia Purge 8

Set a temporary runtime error.

CDN backends have the ability to temporarily halt all activity for the AcquiaPlatformCdnPurger, for instance for hitting an API rate limit. The runtime error expires automatically after the specified timeout.

Parameters

string $message: Translated user interface message, presentable to users.

int $timeout: Number of seconds after which the runtime error will disappear.

1 method overrides BackendInterface::setTemporaryRuntimeError()
BackendBase::setTemporaryRuntimeError in src/AcquiaPlatformCdn/BackendBase.php
Set a temporary runtime error.

File

src/AcquiaPlatformCdn/BackendInterface.php, line 108

Class

BackendInterface
Describes a vendor backend for the Platform CDN purger.

Namespace

Drupal\acquia_purge\AcquiaPlatformCdn

Code

public static function setTemporaryRuntimeError($message, $timeout = 300);