embedCode && $this->oembed) { $width = $this->oembed->get('width'); $height = $this->oembed->get('height'); $this->attributes(['width' => $width, 'height' => $height]); } return $oembed; } public function getEmbedCode($params = []) { $embed = parent::getEmbedCode($params); if (mb_strlen($embed) == 0 && $this->embedCode && $this->oembed) { $embed = $this->oembed->get('html', ''); } return $embed; } }