You are here

function address_requirements in Address 8

Implements hook_requirements().

File

./address.install, line 17
Requirements and update functions for the address module.

Code

function address_requirements($phase) {
  $requirements = [];
  if ($phase == 'install') {
    if (!class_exists('\\CommerceGuys\\Addressing\\AddressFormat\\AddressFormatRepository')) {
      $requirements['addressing_library'] = [
        'description' => t('Address requires the commerceguys/addressing library.'),
        'severity' => REQUIREMENT_ERROR,
      ];
    }
  }
  return $requirements;
}