public function MoxtraConnector::checkSettings in Opigno Moxtra 3.x
Same name and namespace in other branches
- 8 src/MoxtraConnector.php \Drupal\opigno_moxtra\MoxtraConnector::checkSettings()
Check if Moxtra settings is fine.
1 call to MoxtraConnector::checkSettings()
- MoxtraConnector::request in src/
MoxtraConnector.php - Helper function to send a request with JSON data to the Moxtra API.
File
- src/
MoxtraConnector.php, line 222
Class
Namespace
Drupal\opigno_moxtraCode
public function checkSettings() {
$fields = [
'client_id',
'client_secret',
'email',
'org_id',
];
foreach ($fields as $field) {
if (empty($this->settings[$field])) {
return FALSE;
}
}
return TRUE;
}