public function Vcl::get_condition in Fastly 7.2
Fetches condition by condition name.
@name string
Return value
bool
1 call to Vcl::get_condition()
- Vcl::prepare_condition in ./
fastly.vcl.inc - Prepares condition for insertion.
File
- ./
fastly.vcl.inc, line 423
Class
- Vcl
- Class to control the VCL handling.
Code
public function get_condition($name) {
$uri = $this->_version_base_url . "/" . $this->_last_cloned_version . '/condition/' . $name;
$response = $this->_api
->makeRequest($uri, array(), "GET", $this->_headers_get);
if ($response->code != 404) {
return TRUE;
}
return FALSE;
}