You are here

public function VclHandler::getCondition in Fastly 8.3

Fetches condition by condition name.

Parameters

string $name: Condition name.

Return value

\Psr\Http\Message\ResponseInterface vclQuery.

1 call to VclHandler::getCondition()
VclHandler::uploadMaintenancePage in src/VclHandler.php
Upload maintenance page.

File

src/VclHandler.php, line 838

Class

VclHandler
Class to control the VCL handling.

Namespace

Drupal\fastly

Code

public function getCondition($name) {
  $url = $this->versionBaseUrl . '/' . $this->lastClonedVersion . '/condition/' . $name;
  return $this
    ->vclGetWrapper($url, $this->headersGet);
}