protected function ApiSync::processResponse in FormAssembly 8
Helper method to process responses property into forms array.
Parameters
array $response: Associative array from json_decode.
2 calls to ApiSync::processResponse()
- ApiSync::getAdminForms in src/
ApiSync.php - Helper method for getting forms from the admin index.
- ApiSync::getStandardForms in src/
ApiSync.php - Helper method for getting forms from the standard index.
File
- src/
ApiSync.php, line 308
Class
- ApiSync
- Service class for FormAssembly API: Handles form sync.
Namespace
Drupal\formassemblyCode
protected function processResponse(array $response) {
if (!empty($response['Forms'])) {
$this->forms = array_merge($this->forms, $response['Forms']);
}
if (!empty($response['Category'])) {
$this
->extractCategories($response['Category']);
}
}