In /src/Plugin/Field/FieldFormatter/SlideShareEmbedFormatter, we use this Class, but it's doesn't exist (anymore ?) in the library .
The use declaration :
use ZendService\SlideShare\HttpException\RuntimeException as HttpRuntimeException;
Used here :
public function getSlideshowUrl($login, $shortcode) {
try {
/** @var \ZendService\SlideShare\SlideShare $ss */
$ss = new ZendSlideShare($this->apiKey, $this->sharedSecret);
/** @var \ZendService\SlideShare\SlideShow $byurl */
$byurl = $ss->getSlideShowByUrl("http://www.slideshare.net/$login/$shortcode");
return $byurl->getSlideshowEmbedUrl();
}
catch (RuntimeException $exception) {
watchdog_exception(__CLASS__, $exception);
}
<strong> catch (HttpRuntimeException $exception)</strong> {
watchdog_exception(__CLASS__, $exception);
}
}
Comments
Comment #3
NerOcrO commentedThank you!