isValid() && $response->getUrl()->match([ 'archive.org/details/*', ]); } /** * {@inheritdoc} */ protected function init() { parent::init(); $this->providers = ['archive' => new Api\Archive($this)] + $this->providers; } /** * {@inheritdoc} */ public function getCode() { return Utils::iframe(str_replace('/details/', '/embed/', $this->url), $this->width, $this->height); } /** * {@inheritdoc} */ public function getWidth() { return 640; } /** * {@inheritdoc} */ public function getHeight() { return 480; } }