public function AkamaiClientBase::createPurgeBody in Akamai 8.3
Create an array to pass to Akamai's purge function.
Parameters
string[] $urls: A list of URLs.
Return value
array An array suitable for sending to the Akamai purge endpoint.
1 call to AkamaiClientBase::createPurgeBody()
- AkamaiClientBase::bodyIsBelowLimit in src/
AkamaiClientBase.php - Verifies that the body of a purge request will be under 50,000 bytes.
1 method overrides AkamaiClientBase::createPurgeBody()
- AkamaiClientV3::createPurgeBody in src/
Plugin/ Client/ AkamaiClientV3.php - Create an array to pass to Akamai's purge function.
File
- src/
AkamaiClientBase.php, line 295
Class
- AkamaiClientBase
- Connects to the Akamai EdgeGrid.
Namespace
Drupal\akamaiCode
public function createPurgeBody(array $urls) {
return [
'objects' => $urls,
'action' => $this->action,
'domain' => $this->domain,
'type' => $this->type,
];
}