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