public function Api::ioEnabled in Fastly 8.3
Check if IO is enabled on service.
Parameters
$serviceId:
Return value
bool
File
- src/
Api.php, line 686
Class
- Api
- Fastly API for Drupal.
Namespace
Drupal\fastlyCode
public function ioEnabled($serviceId) {
$response = $this
->getDetails($serviceId);
if ($response instanceof \stdClass) {
if (property_exists($response, 'active_version') && property_exists($response->active_version, 'io_settings')) {
return TRUE;
}
}
return FALSE;
}