|
|
@ -8,6 +8,7 @@ use Drupal\Core\Form\FormStateInterface; |
|
|
|
use Drupal\Component\Utility\UrlHelper; |
|
|
|
use Drupal\Component\Utility\UrlHelper; |
|
|
|
use GuzzleHttp\ClientInterface; |
|
|
|
use GuzzleHttp\ClientInterface; |
|
|
|
use GuzzleHttp\Exception\ClientException; |
|
|
|
use GuzzleHttp\Exception\ClientException; |
|
|
|
|
|
|
|
use GuzzleHttp\Exception\ConnectException; |
|
|
|
use Symfony\Component\DependencyInjection\ContainerInterface; |
|
|
|
use Symfony\Component\DependencyInjection\ContainerInterface; |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
@ -118,6 +119,9 @@ class IslandoraIIIFConfigForm extends ConfigFormBase { |
|
|
|
catch (ClientException $e) { |
|
|
|
catch (ClientException $e) { |
|
|
|
return FALSE; |
|
|
|
return FALSE; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
catch (ConnectException $e) { |
|
|
|
|
|
|
|
return FALSE; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|