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