protected function USPSBase::isConfigured in Commerce USPS 8
Determine if we have the minimum information to connect to USPS.
Return value
bool TRUE if there is enough information to connect, FALSE otherwise.
1 call to USPSBase::isConfigured()
- USPSBase::buildConfigurationForm in src/
Plugin/ Commerce/ ShippingMethod/ USPSBase.php - Form constructor.
File
- src/
Plugin/ Commerce/ ShippingMethod/ USPSBase.php, line 269
Class
Namespace
Drupal\commerce_usps\Plugin\Commerce\ShippingMethodCode
protected function isConfigured() {
$api_config = $this->configuration['api_information'];
if (empty($api_config['user_id']) || empty($api_config['password'])) {
return FALSE;
}
return TRUE;
}