Skip to content
Snippets Groups Projects

Put each entity type table into a details element on admin/config/regional/content-language

2 files
+ 33
1
Compare changes
  • Side-by-side
  • Inline
Files
2
  • b8abdeb3
    Issue #3202145 by kuldeep_mehra27, phenaproxima, bkosborne, Chris Burge:... · b8abdeb3
    catch authored
    Issue #3202145 by kuldeep_mehra27, phenaproxima, bkosborne, Chris Burge: oEmbed resource fetcher needs to set a reasonable connection timeout
@@ -6,6 +6,7 @@
use Drupal\Core\Cache\CacheBackendInterface;
use GuzzleHttp\ClientInterface;
use GuzzleHttp\Exception\TransferException;
use GuzzleHttp\RequestOptions;
/**
* Fetches and caches oEmbed resources.
@@ -65,7 +66,9 @@ public function fetchResource($url) {
}
try {
$response = $this->httpClient->get($url);
$response = $this->httpClient->request('GET', $url, [
RequestOptions::TIMEOUT => 5,
]);
}
catch (TransferException $e) {
throw new ResourceException('Could not retrieve the oEmbed resource.', $url, [], $e);
Loading