You are here

public function VclHandler::prepareInsertSetting in Fastly 8.3

Prepares Insert setting data.

@data array

Return value

array Request data to insert settings.

1 call to VclHandler::prepareInsertSetting()
VclHandler::prepareSetting in src/VclHandler.php
Prepares setting for insertion.

File

src/VclHandler.php, line 975

Class

VclHandler
Class to control the VCL handling.

Namespace

Drupal\fastly

Code

public function prepareInsertSetting($data) {
  $url = $this->versionBaseUrl . '/' . $this->lastClonedVersion . '/request_settings';
  $request = [
    'url' => $url,
    'data' => $data,
    'type' => 'POST',
  ];
  return $request;
}