public function VclHandler::prepareUpdateCondition in Fastly 8.3
Prepare condition for update.
@data array
Return value
array Request data to update condition.
1 call to VclHandler::prepareUpdateCondition()
- VclHandler::prepareCondition in src/
VclHandler.php - Prepares condition for insertion.
File
- src/
VclHandler.php, line 851
Class
- VclHandler
- Class to control the VCL handling.
Namespace
Drupal\fastlyCode
public function prepareUpdateCondition($data) {
$url = $this->versionBaseUrl . '/' . $this->lastClonedVersion . '/condition/' . $data['name'];
$request = [
'url' => $url,
'data' => $data,
'type' => "PUT",
];
return $request;
}