/** * {@inheritdoc} */ public function getCode() { if ($code = parent::getcode()) { return $code; } switch (self::$contentTypes[$this->request->getMimeType()][1]) { case 'videoHtml': return Utils::videoHtml($this->image, $this->url, $this->imageWidth, $this->imageHeight); case 'audioHtml': return Utils::audioHtml($this->url); case 'google': return Utils::google($this->url); } }