You are here

protected function FedEx::isConfigured in Commerce FedEx 8

Determine if we have the minimum information to connect to FedEx.

Return value

bool TRUE if there is enough information to connect, FALSE otherwise.

1 call to FedEx::isConfigured()
FedEx::buildConfigurationForm in src/Plugin/Commerce/ShippingMethod/FedEx.php
Form constructor.

File

src/Plugin/Commerce/ShippingMethod/FedEx.php, line 1012

Class

FedEx
Provides the FedEx shipping method.

Namespace

Drupal\commerce_fedex\Plugin\Commerce\ShippingMethod

Code

protected function isConfigured() {
  $api_information = $this->configuration['api_information'];
  return !empty($api_information['api_key']) && !empty($api_information['api_password']) && !empty($api_information['account_number']) && !empty($api_information['meter_number']);
}