isValid() && $response->getUrl()->match([ 'www.flickr.com/photos/*', ]); } /** * {@inheritdoc} */ public function getCode() { $code = parent::getCode(); if (empty($code)) { $this->width = 640; $this->height = 425; $code = Utils::iframe($this->getResponse()->getUrl()->withAddedPath('player'), $this->width, $this->height); } return $code; } /** * {@inheritdoc} */ public function getProviderName() { return 'Flickr'; } }